N = int(input())K = int(input()) print(K // N)print(K % N)
3 14
4 2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!