>>53
#ほぼ>>55の功績
import os, os.path, sys

s = sys.stdin.readline().rstrip('\n')
if os.path.exists(s):
 if os.path.isdir(s):
  for root, dirs, files in os.walk(s):
   for fname in files: print os.path.join(root, fname)
 else:
  print os.path.abspath(s)
else:
 print 'Not exists.'