fork download
  1. #include <bits/stdc++.h>
  2. #include <time.h>
  3. using namespace std;
  4. #define CIN(x) for(auto &i : x) \
  5. cin>>i;
  6. #define deb(x) cout<<#x <<' '<<x<<nl;
  7. #define ios ios::sync_with_stdio(0); \
  8. cin.tie(0);\
  9.  
  10. void read(){
  11. freopen("input.txt", "r", stdin);
  12. freopen("output.txt", "w", stdout);
  13. }
  14. //////////////////////////////////////////////////
  15. const int INF = INT_MAX;
  16. int freq[26];
  17. void solve(){
  18. string s; cin>>s;
  19. int ans = 0;
  20. for(int i = 0 ; i < (int)s.size() ; ++i){
  21. freq[s[i] - 'a'] += 1;
  22. if(freq[s[i]-'a'] == 1)
  23. ++ans;
  24. }
  25. if(ans % 2 == 0){
  26. cout<<"CHAT WITH HER!"<<'\n';
  27. }
  28. else{
  29. cout<<"IGNORE HIM!"<<'\n';
  30. }
  31.  
  32. }
  33.  
  34. int main(){ ios
  35. // read();
  36. int tt = 1;
  37. //cin>>tt;
  38. for(int t = 1 ; t <= tt ; ++t){
  39. solve();
  40. }
  41.  
  42. return 0;
  43. }
  44.  
Success #stdin #stdout 0.01s 5380KB
stdin
Standard input is empty
stdout
CHAT WITH HER!