#include<iostream>
#include<string>

int main(){

  std::string num1("10000");
  std::string num2("990000");
  int n;

  //std::cin >> n;
  n=1;

  for(int i=0;i<n;i++){
    //std::cin >> num1 >> num2;
    if(num1.size()<num2.size()){
      num1.swap(num2);
    }
    std::cout << num1 << std::endl;
    std::cout << num2 << std::endl;
  }
}