#include <bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
int n;
cin >> n;
vector<int> a(n);
for(auto& i: a) cin >> i;
if (n == 2 && a[0] == a[1])
{
cout << "Zenyk\n";
return 0;
}
cout << "Marichka\n";
int mn = min(a[0], a[1]);
for(int i = 0; i < 2; i++)
cout << a[i] - mn << ' ';
for(int i = 2; i < n; i++)
cout << a[i] << ' ';
cout << '\n';
cerr << "Time elapsed: " << clock() / (double)CLOCKS_PER_SEC << endl;
return 0;
}