#!/usr/bin/env python3 # from typing import * # def solve(N: int) -> Tuple[int, int]: def solve(n): if n == 0: return 9, 1 else: return 8 + 9 * 2 * n, 1 # generated by oj-template v4.7.2 (https://github.com/online-judge-tools/template-generator) def main(): N = int(input()) c, d = solve(N) print(c, d) if __name__ == '__main__': main()