n, m = map(int, input().split(' ')) print(n//m)print(n%m)
1000 100
10 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!