fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Main
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. Scanner in = new Scanner(System.in);
  10. int[] x = {10,0,1,22,6,123,12,1124,40,11125,30,111126,84,1111127,224,11111128,144,111111129};
  11. int n;
  12. n = in.nextInt();
  13. System.out.print(x[2*n-2] + " " + x[2*n-1]);
  14. }
  15. }
  16.  
Success #stdin #stdout 0.08s 2184192KB
stdin
1
stdout
10 0