N = int(input()) #initial number
d1 = N // 100 # the first digit of initial number
x = (N - d1*100) * 10 + d1 # delete the first digit -> multiply by ten -> plus the first digit of init.num
print(x) #print result
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
N = int(input()) #initial number
d1 = N // 100 # the first digit of initial number
x = (N - d1*100) * 10 + d1 # delete the first digit -> multiply by ten -> plus the first digit of init.num
print(x) #print result