#include
using namespace std;
int main() {
int n,c;
cin >> n;
cin >> c;
int a[n];
for(int i = 0; i < n; i++) {
cin >> a[i];
cout << a[i] << ' ';<br> }
cout << endl;<br> for(int i = 0; i < n; i++) {
a[i]-=3;
cout << a[i] << ' ';<br> }
cout << endl;<br>}