import java.util.*; class No35{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); double[] second = new double[N]; String[] str = new String[N]; long strLength = 0; long actualStr = 0; for(int i=0; i1000){ second[j] = 1000; } actualStr += Math.floor(12*(second[j]/1000)); } System.out.println(actualStr+" "+(strLength - actualStr)); } }