n = int(input()) if n < 10: print(0)else: print((n // 10) % 10)
58
5
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!