a = 30 * 10
s = 0
for i in range(30):
    s += 2 ** i
print(a,s)