a = io.read("*n") if a == 0 then print("9 1") else print(8 + 18 * a .. " 1") end