#include <stdio.h>
#include <iostream>
using namespace std;
int n,l,k,i,j,x, y, cnt;
int main(){
cin >> n >> l;
if(n*n < l || l % 2 == 1)
cout << "Unsuitable device\n";
else {
cout << "Overwhelming power of magic\n";
if (l <= 2 * n) {
k = l / 2;
for (i = 1; i <= k; i++) printf("1 %d\n", i);
for (i = k; i >= 1; i--) printf("2 %d\n", i);
return 0;
} else
if (l <= 4 * n - 4) {
k = (l + 4 - 2 * n)/ 2;
for (i = 1; i <= n; i++) printf("1 %d\n", i);
for (i = 2; i <= k; i++) printf("%d %d\n", i, n);
for (i = n - 1; i >= 1; i--) printf("%d %d\n", k, i);
for (i = k - 1; i >= 2; i--) printf("%d %d\n", i, 1);
return 0;
} else {
for (i = 1; i <= n; i++) printf("1 %d\n", i);
for (i = 2; i <= n; i++) printf("%d %d\n", i, n);
x = n;
y = n;
for(cnt = 0, k = 2 * n; 1; k++) {
if (cnt % 2 == 0) x--;
else x++;
printf("%d %d\n", y, x);
if (k + y - 2 + x - 1 == l) break;
if ((cnt % 2 == 0 && x == 1) || (cnt % 2 == 1 && x == n - 1)) {
y--;
k++;
printf("%d %d\n", y, x);
if (k + y - 2 + x - 1 == l) break;
cnt++;
}
}
if (y == 2 && x == 1)return 0;
for (y--; y >= 2; y--) printf("%d %d\n", y, x);
for (x--; x >= 1; x--) printf("2 %d\n", x);
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxpb3N0cmVhbT4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKaW50IG4sbCxrLGksaix4LCB5LCBjbnQ7CmludCBtYWluKCl7CiAgICBjaW4gPj4gbiA+PiBsOwogICAgaWYobipuIDwgbCB8fCBsICUgMiA9PSAxKQogICAgICAgIGNvdXQgPDwgIlVuc3VpdGFibGUgZGV2aWNlXG4iOwogICAgZWxzZSB7CiAgICAgICAgY291dCA8PCAiT3ZlcndoZWxtaW5nIHBvd2VyIG9mIG1hZ2ljXG4iOwogICAgICAgIAogICAgICAgIGlmIChsIDw9IDIgKiBuKSB7CiAgICAgICAgICAgIGsgPSBsIC8gMjsKICAgICAgICAgICAgZm9yIChpID0gMTsgaSA8PSBrOyBpKyspIHByaW50ZigiMSAlZFxuIiwgaSk7CiAgICAgICAgICAgIGZvciAoaSA9IGs7IGkgPj0gMTsgaS0tKSBwcmludGYoIjIgJWRcbiIsIGkpOwogICAgICAgICAgICByZXR1cm4gMDsKICAgICAgICB9IGVsc2UKICAgICAgICBpZiAobCA8PSA0ICogbiAtIDQpIHsKICAgICAgICAgICAgayA9IChsICsgNCAtIDIgKiBuKS8gMjsKICAgICAgICAgICAgZm9yIChpID0gMTsgaSA8PSBuOyBpKyspIHByaW50ZigiMSAlZFxuIiwgaSk7CiAgICAgICAgICAgIGZvciAoaSA9IDI7IGkgPD0gazsgaSsrKSBwcmludGYoIiVkICVkXG4iLCBpLCBuKTsKICAgICAgICAgICAgZm9yIChpID0gbiAtIDE7IGkgPj0gMTsgaS0tKSBwcmludGYoIiVkICVkXG4iLCBrLCBpKTsKICAgICAgICAgICAgZm9yIChpID0gayAtIDE7IGkgPj0gMjsgaS0tKSBwcmludGYoIiVkICVkXG4iLCBpLCAxKTsKICAgICAgICAgICAgICAgIAogICAgICAgICAgICByZXR1cm4gMDsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBmb3IgKGkgPSAxOyBpIDw9IG47IGkrKykgcHJpbnRmKCIxICVkXG4iLCBpKTsKICAgICAgICAgICAgZm9yIChpID0gMjsgaSA8PSBuOyBpKyspIHByaW50ZigiJWQgJWRcbiIsIGksIG4pOwogICAgICAgICAgICAKICAgICAgICAgICAgeCA9IG47CiAgICAgICAgICAgIHkgPSBuOwogICAgICAgICAgICAKICAgICAgICAgICAgZm9yKGNudCA9IDAsIGsgPSAyICogbjsgMTsgaysrKSB7CiAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgaWYgKGNudCAlIDIgPT0gMCkgeC0tOwogICAgICAgICAgICAgICBlbHNlICAgICAgICAgICAgICB4Kys7CgogICAgICAgICAgICAgICBwcmludGYoIiVkICVkXG4iLCB5LCB4KTsKIAogICAgICAgICAgICAgICBpZiAoayArIHkgLSAyICsgeCAtIDEgPT0gbCkgIGJyZWFrOwoKICAgICAgICAgICAgICAgaWYgKChjbnQgJSAyID09IDAgJiYgIHggPT0gMSkgIHx8ICAoY250ICUgMiA9PSAxICAmJiAgeCA9PSBuIC0gMSkpIHsKICAgICAgICAgICAgICAgICAgIHktLTsKICAgICAgICAgICAgICAgICAgIGsrKzsKICAgICAgICAgICAgICAgICAgIHByaW50ZigiJWQgJWRcbiIsIHksIHgpOwogICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICBpZiAoayArIHkgLSAyICsgeCAtIDEgPT0gbCkgIGJyZWFrOwogICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICBjbnQrKzsKICAgICAgICAgICAgICAgfSAgICAgICAgICAgIAogICAgICAgICAgICB9CiAgICAgICAgICAgIGlmICh5ID09IDIgICYmICB4ID09IDEpcmV0dXJuIDA7CiAgICAgICAgICAgIGZvciAoeS0tOyB5ID49IDI7IHktLSkgcHJpbnRmKCIlZCAlZFxuIiwgeSwgeCk7CiAgICAgICAgICAgIGZvciAoeC0tOyB4ID49IDE7IHgtLSkgcHJpbnRmKCIyICVkXG4iLCB4KTsKICAgICAgICB9CiAgICB9CiAgICByZXR1cm4gMDsKfQ==