#include <iostream>
using namespace std;


void palindrom_mes_llarg(int n, int b, int& i, int& j);


int main() {
  int n, b;
  while (cin >> n >> b) {
    int i, j;
    palindrom_mes_llarg(n, b, i, j);
    cout << i << ' ' << j << endl;
  }
}
