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