a=int(input())b=int(input()) if a >= 0 and b >= 0: print(a // b ,"r", a % b)
4 5
(0, 'r', 4)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!