#include <iostream>
#include <string>
int main()
{
std::string str;
std::cin >> str;
std::string findA = "A";
std::string replaceWith = "10";
size_t pos = 0;
while ((pos = str.find(findA, pos)) != std::string::npos)
{
str.replace(pos, findA.length(), replaceWith);
pos += replaceWith.length();
}
std::cout << str << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKaW50IG1haW4oKQp7CiAgICBzdGQ6OnN0cmluZyBzdHI7CiAgICBzdGQ6OmNpbiA+PiBzdHI7CgogICAgc3RkOjpzdHJpbmcgZmluZEEgPSAiQSI7CiAgICBzdGQ6OnN0cmluZyByZXBsYWNlV2l0aCA9ICIxMCI7CgogICAgc2l6ZV90IHBvcyA9IDA7CiAgICB3aGlsZSAoKHBvcyA9IHN0ci5maW5kKGZpbmRBLCBwb3MpKSAhPSBzdGQ6OnN0cmluZzo6bnBvcykKICAgIHsKICAgICAgICBzdHIucmVwbGFjZShwb3MsIGZpbmRBLmxlbmd0aCgpLCByZXBsYWNlV2l0aCk7CiAgICAgICAgcG9zICs9IHJlcGxhY2VXaXRoLmxlbmd0aCgpOwogICAgfQoKICAgIHN0ZDo6Y291dCA8PCBzdHIgPDwgc3RkOjplbmRsOwogICAgcmV0dXJuIDA7Cn0K