import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); br.close(); if (n == 0) { System.out.println("9 1"); } else { int ans = 18 * n + 4; System.out.println(ans + " 1"); } } }