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