#include <iostream>
using namespace std;
const int HUNDREDELEVEN = 111;
const int ELEVEN = 11;
int main() {
int a, b;
cin >> a >> b;
if (a % HUNDREDELEVEN == 0 && b % ELEVEN == 0) {
cout << "ambele";
} else if (a % HUNDREDELEVEN == 0) {
cout << "a";
} else {
cout << "b";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY29uc3QgaW50IEhVTkRSRURFTEVWRU4gPSAxMTE7CmNvbnN0IGludCBFTEVWRU4gPSAxMTsKCmludCBtYWluKCkgewoJaW50IGEsIGI7CgljaW4gPj4gYSA+PiBiOwoJaWYgKGEgJSBIVU5EUkVERUxFVkVOID09IDAgJiYgYiAlIEVMRVZFTiA9PSAwKSB7CgkJY291dCA8PCAiYW1iZWxlIjsKCX0gZWxzZSBpZiAoYSAlIEhVTkRSRURFTEVWRU4gPT0gMCkgewoJCWNvdXQgPDwgImEiOwoJfSBlbHNlIHsKCQljb3V0IDw8ICJiIjsKCX0KCXJldHVybiAwOwp9