♟️
#include <iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int input;
cin >> input;
cout << 1 - input << " ";
cin >> input;
cout << 1 - input << " ";
cin >> input;
cout << 2 - input << " ";
cin >> input;
cout << 2 - input << " ";
cin >> input;
cout << 2 - input << " ";
cin >> input;
cout << 8 - input;
return 0;
}