# ========================
#       Information
# ========================

# Direct Link: https://www.hackerrank.com/challenges/python-division/problem
# Difficulty: Easy
# Max Score: 10
# Language: Python

# ========================
#         Solution
# ========================

A = int(input())
B = int(input())

print(A // B)
print(A / B)

# ========================
#       Explanation
# ========================

# // -> Floor division, rounds the result down to the nearest whole number, example, (15 // 2) is 7
