word = input('Write word or a phrase: ')
try:
word = int(word)
print(word)
except ValueError:
checker = []
for i in word:
if i.isdigit():
print('Contains a: {' + i + '}')
checker.append(i)
if len(checker) == 0:
print('Does not contain numbers')