fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. string str;
  8. int l,k,p=0;
  9.  
  10. for(int i=0;i<3;i++){
  11. cin>>str;
  12.  
  13. if(str[0]=='l')
  14. l=1;
  15. else if(str[0]=='k')
  16. k=1;
  17. else if(str[0]=='p')
  18. p=1;
  19. }
  20.  
  21. if(l==k && k==p && p==1)
  22. cout<<"GLOBAL";
  23. else
  24. cout<<"PONIX";
  25.  
  26. return 0;
  27. }
Success #stdin #stdout 0s 5316KB
stdin
leo020630
kwoncycle
petamingks
stdout
GLOBAL