a = int(input()) b = int(input()) print(a // b) print(format(a / b, '.3f'))