n = int(raw_input())
first = 0
second = 1
f = [0]
num = 0
while num < 51:
first, second = second, first + second
f.append(first)
num += 1
print f[n]
first = 0
second = 1
f = [0]
num = 0
while num < 51:
first, second = second, first + second
f.append(first)
num += 1
print f[n]