1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifdef _MSC_VER
  #ifndef __GNUC__
    #pragma warning(disable: 4996)
  #endif
  #define main main0
#endif
#include <iostream>
using namespace std;
typedef long long           ll;
typedef unsigned long long ull;
typedef unsigned int      uint;

int main() {
  std::ios_base::sync_with_stdio(false);
  std::cin.tie(NULL);

  int A, B;
  string osoba;
  cin >> osoba;
  cin >> A >> B;
  /*A = 1001 - A;
  B = 1001 - B;
  cout << A << ' ' << B << flush;//*/
  cout << 1001 - A << ' ' << 1001 - B << flush;

  return 0;
}