import math x,y=input().split() x=int(x) y=int(y) m=x//y n=x/y-x//y print(m,math.ceil(n)) #为什么某些情况math.ceil(x/y-x//y)!=x%y