fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. const int HUNDREDELEVEN = 111;
  5. const int ELEVEN = 11;
  6.  
  7. int main() {
  8. int a, b;
  9. cin >> a >> b;
  10. if (a % HUNDREDELEVEN == 0 && b % ELEVEN == 0) {
  11. cout << "ambele";
  12. } else if (a % HUNDREDELEVEN == 0) {
  13. cout << "a";
  14. } else {
  15. cout << "b";
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0s 5276KB
stdin




stdout
b