x = int(input())
y = int(input())
#输出x除以y商,余数
print(x//y,x % y)
#获取x除以y的值
a = x/y
#输出保留两位小数
print("%.2f"%a)