n = int(input()) print((n // 100) % 10)print((n // 1000) % 10)
12345
3 2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!