fork download
  1. _list=list(map(int,input().split()))
  2. t=tuple(_list)
  3. res=[x for x in t if x%7==0 or x%10==7]
  4. for i in res:
  5. print(i)
Success #stdin #stdout 0.02s 9124KB
stdin
1 2 3 4 5 6 7 8 9 70 14
stdout
7
70
14