N=int(input())

if N==0:
    print(9,1)
else:
    d=2*N+1
    print(9*d-1,1)