import os
def show_file(path):
name_list=os.listdir(path)
s=0
for name in name_list:
abs_path=os.path.join(path,name)
if os.path.isfile(abs_path):
print(abs_path)
size= os.path.getsize(abs_path)
s += size
else:
s += show_file(abs_path)
return s
s1=input()
ret=show_file(s1)
print(ret)
print(ret/1024/1024)