import java.io.BufferedReader; import java.io.InputStreamReader;   public class Bus {         public static void main(String[] args) throws Exception {         int i,j,k;                 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));                 int N = Integer.parseInt(br.readLine());         int M = Integer.parseInt(br.readLine());                 br.close();                 // Vasiot kod tuka         int min = 0,             max = 0;                 if(M == 0) {             min = max = N * 100;         } else if(N > M) {             min = N * 100;             max = (M + N - 1) * 100;         } else if(M > N) {             min = M * 100;             max = (M + N - 1) * 100;         }                 System.out.println(min);         System.out.println(max);     }   }