x=int(input())
y=int(input())
if y!=0: print(x,"/",y,"=",x//y,"r",x%y)