Codeforces-SolutionsA/Codes/236A Boy Or Girl/236A.cpp

33 lines
509 B
C++
Raw Normal View History

2023-06-23 23:43:10 +08:00
#include <bits/stdc++.h>
2023-06-07 22:14:47 +08:00
using namespace std;
2023-06-23 23:43:10 +08:00
using ll = long long;
2023-06-07 22:14:47 +08:00
2023-06-23 23:43:10 +08:00
int l[26];
void solve()
2023-06-07 22:14:47 +08:00
{
2023-06-23 23:43:10 +08:00
string s;
cin>>s;
for(int i=0; i<s.size(); ++i)
{
l[s[i]-'a']++;
}
int ct=0;
for(int i=0; i<26; ++i)
2023-06-07 22:14:47 +08:00
{
2023-06-23 23:43:10 +08:00
if(l[i]>0) ct++;
2023-06-07 22:14:47 +08:00
}
2023-06-23 23:43:10 +08:00
if(ct%2==0) cout<<"CHAT WITH HER!"<<endl;
else cout<<"IGNORE HIM!"<<endl;
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int TC = 1;
//cin >> TC;
//cin.ignore();
while (TC--) solve();
2023-06-07 22:14:47 +08:00
}