#sdpsgssolutions
#The Tremendous Tak-Tak Tree
#Starter Problems 2
# Open the input and output files.
inputFile = open("taktakin.txt", "r")
outputFile = open("taktakout.txt", "w")
# Read the input
myInput = inputFile.readline()
n = int(myInput)
# Calculations
# f is number of full moons, starting at 0
f = 0
# t is number of fruit taken so that one remains
t = n-1
# r is the remainder of fruit after t has been shared between 11 people
r = t%11
while r!=0:
n = n*2
t = n-1
r = t%11
f = f+1
# Write the answer to the output file.
outputFile.write(str(f)+' '+str(n))
# Finally, close the input/output files.
inputFile.close()
outputFile.close()