#include <iostream>
#include <string>
using namespace std;
int main() {
string s = "AB";
s.append(s).push_back(s[s.length() - 1]);
cout << s;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogICAgCmludCBtYWluKCkgewogICAgc3RyaW5nIHMgPSAiQUIiOwogICAgcy5hcHBlbmQocykucHVzaF9iYWNrKHNbcy5sZW5ndGgoKSAtIDFdKTsKICAgIGNvdXQgPDwgczsKICAgIHJldHVybiAwOwp9