
'''
Title     : Python: Division
Subdomain : Introduction
Domain    : Python
Author    : Kalpak Seal
Created   : 28 September 2016
'''

from __future__ import division
a = int(input())
b = int(input())

print (a // b)
print (a / b)