fork download
  1. k, p, t = map(int, input().split())
  2. while k <= p:
  3. k += 1
  4. if k % 10 == t:
  5. print(k, end=' ')
  6.  
Success #stdin #stdout 0.07s 14124KB
stdin
10 39 7
stdout
17 27 37