#include<bits/stdc++.h>
using namespace std;
int main() {
int a[5][5] = {}, cnt = 0;
for(int i = 1; i <= 6; i++) {
int x;
cin >> x;
cnt++;
if(cnt < 3){
cout << x << " ";
}
else if(cnt == 3){
cout << x << endl;
}
else {
cout << x << " ";
}
}
return 0;
}