#encoding:utf-8
s=['1','9']
sta='56789'
# if all(t not in sta for t in s):
# print sta
if all(t not in sta for t in s):
print(sta)
#encoding:utf-8
s=['1','9']
sta='56789'
# if all(t not in sta for t in s):
# print sta
if all(t not in sta for t in s):
print(sta)