#include <iostream>
using namespace std;
const int TEN = 10;
int main() {
int a, b;
cin >> a >> b;
int noAEgale = 0;
int noBEgale = 0;
if (a % TEN == a / TEN % TEN && a % TEN == a / TEN / TEN) {
noAEgale = 1;
}
if (b % TEN == b / TEN % TEN) {
noBEgale = 1;
}
if (noAEgale == 1 && noBEgale == 1) {
cout << "ambele";
} else if (noAEgale == 1) {
cout << "a" << " ";
} else {
cout << "b" << " ";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY29uc3QgaW50IFRFTiA9IDEwOwoKaW50IG1haW4oKSB7CiAgICBpbnQgYSwgYjsKICAgIGNpbiA+PiBhID4+IGI7CiAgICBpbnQgbm9BRWdhbGUgPSAwOwogICAgaW50IG5vQkVnYWxlID0gMDsKCiAgICBpZiAoYSAlIFRFTiA9PSBhIC8gVEVOICUgVEVOICYmIGEgJSBURU4gPT0gYSAvIFRFTiAvIFRFTikgewogICAgICAgIG5vQUVnYWxlID0gMTsKICAgIH0KICAgIGlmIChiICUgVEVOID09IGIgLyBURU4gJSBURU4pIHsKICAgICAgICBub0JFZ2FsZSA9IDE7CiAgICB9CiAgICBpZiAobm9BRWdhbGUgPT0gMSAmJiBub0JFZ2FsZSA9PSAxKSB7CiAgICAgICAgY291dCA8PCAiYW1iZWxlIjsKICAgIH0gZWxzZSBpZiAobm9BRWdhbGUgPT0gMSkgewogICAgICAgIGNvdXQgPDwgImEiIDw8ICIgIjsKICAgIH0gZWxzZSB7CiAgICAgICAgY291dCA8PCAiYiIgPDwgIiAiOwogICAgfQogICAgcmV0dXJuIDA7Cn0=