def shui_xian(n):
return n == sum([int(i)**3 for i in list(str(n))])
for i in range(1, 1001):
if shui_xian(i):
print(i)
#!usr/bin/env python3
import re
a = input()
words = re.findall(r'\b([A-Z][a-z]{1,5})\b', a)
if words:
print('\n'.join(words))
else:
print('not found')
import re
f1, f2 = 'data.txt', 'datas.txt'
with open(f1) as f:
s = f.read()
L = [int(i) for i in re.findall(r'\d+', s)]
ss = '\n'.join([str(i) for i in sorted(L)])
with open(f2, 'w') as f:
f.write(ss)