#include <iostream>
using namespace std;
const int MAX_SIZE = 9;
int main() {
int n, x, y, mt[MAX_SIZE +1][MAX_SIZE + 1];
cin >> n >> x >> y;
for (int i = 1; i <= n; ++i) {
for (int j = 1; j <= n; ++j) {
cin >> mt[i][j];
}
}
int manhattanWay = x - 1 + y - 1, computingWay = 0;
for (int i = 1; i < x; ++i) {
computingWay += mt[i][y];
}
for (int j = 1; j < y; ++j) {
computingWay += mt[1][j];
}
if (manhattanWay < computingWay) {
cout << "Manhattan way";
} else if (computingWay < manhattanWay) {
cout << "Computing way";
} else {
cout << "Both ways";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY29uc3QgaW50IE1BWF9TSVpFID0gOTsKCmludCBtYWluKCkgewoJaW50IG4sIHgsIHksIG10W01BWF9TSVpFICsxXVtNQVhfU0laRSArIDFdOwoJY2luID4+IG4gPj4geCA+PiB5OwoJZm9yIChpbnQgaSA9IDE7IGkgPD0gbjsgKytpKSB7CgkJZm9yIChpbnQgaiA9IDE7IGogPD0gbjsgKytqKSB7CgkJCWNpbiA+PiBtdFtpXVtqXTsKCQl9Cgl9CglpbnQgbWFuaGF0dGFuV2F5ID0geCAtIDEgKyB5IC0gMSwgY29tcHV0aW5nV2F5ID0gMDsKCWZvciAoaW50IGkgPSAxOyBpIDwgeDsgKytpKSB7CgkJY29tcHV0aW5nV2F5ICs9IG10W2ldW3ldOwoJfQoJZm9yIChpbnQgaiA9IDE7IGogPCB5OyArK2opIHsKCQljb21wdXRpbmdXYXkgKz0gbXRbMV1bal07Cgl9CglpZiAobWFuaGF0dGFuV2F5IDwgY29tcHV0aW5nV2F5KSB7CgkJY291dCA8PCAiTWFuaGF0dGFuIHdheSI7Cgl9IGVsc2UgaWYgKGNvbXB1dGluZ1dheSA8IG1hbmhhdHRhbldheSkgewoJCWNvdXQgPDwgIkNvbXB1dGluZyB3YXkiOwoJfSBlbHNlIHsKCQljb3V0IDw8ICJCb3RoIHdheXMiOwoJfQoJcmV0dXJuIDA7Cn0=