fork download
  1. #include <iostream>
  2. #include<cstring>
  3. using namespace std;
  4.  
  5. int main() {
  6. int a[26];
  7. for(int i=0;i<26;i++)
  8. {
  9. a[i]=0;
  10. }
  11. string s;
  12. cin>>s;
  13. int count=0;
  14. for(int i=0;i<s.size();i++)
  15. {
  16. a[s[i]%97]++;
  17. }
  18. for(int i=0;i<26;i++)
  19. if(a[i]!=0)
  20. count++;
  21. if(count%2==0)
  22. cout<<"CHAT WITH HER!";
  23. else
  24. cout<<"IGNORE HIM!";
  25. return 0;
  26. }
Success #stdin #stdout 0s 3476KB
stdin
sevenkplus
stdout
CHAT WITH HER!