fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n,p,q,cur;
  6. set<int> l;
  7. cin >> n;
  8. for(int i=1;i<=n;++i) l.insert(i);
  9.  
  10. cin >> p;
  11. while(p--){
  12. cin >> cur;
  13. if(l.count(cur)) l.erase(cur);
  14. }
  15. cin >> q;
  16. while(q--){
  17. cin >> cur;
  18. if(l.count(cur)) l.erase(cur);
  19. }
  20.  
  21. l.empty() ? cout << "I become the guy." : cout << "Oh, my keyboard!";
  22.  
  23. return 0;
  24. }
Success #stdin #stdout 0s 5284KB
stdin
4
3 4 2 3
2 2 4
stdout
Oh, my keyboard!