fork download
  1. n = int(input())
  2.  
  3. a = n // 100
  4. b = (n // 10) % 10
  5. c = n % 10
  6.  
  7. print(c * 100 + b * 10 + a)
  8.  
Success #stdin #stdout 0.02s 7260KB
stdin
321
stdout
123