# Read an integer:
a = int(input())
# Read a float:
# b = float(input())
# Print a value:
print(a // 60 , " " + str(a % 60))

b7672ffcf668f76f6fa2338deafb8e2d29e5058d
<mask token>

<mask token>
print(a // 60, ' ' + str(a % 60))

a = int(input())
print(a // 60, ' ' + str(a % 60))

# Read an integer:
a = int(input())
# Read a float:
# b = float(input())
# Print a value:
print(a // 60 , " " + str(a % 60))
