Codeforces-SolutionsA/236A-BoyOrGirl/236A.cpp
2023-06-07 20:14:47 +06:00

20 lines
386 B
C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
char name[100];
cin>>name;
int i,j,len,count=0;
len=strlen(name);
for(i=0;i<len;i++)
{
for(j=i+i;j<len;j++)
{
if(name[i]==name[j]) count++;
}
}
cout<<len-count<<endl;
if((len-count)%2!=0) cout<<"IGNORE HIM!"<<endl;
else cout<<"CHAT WITH HER!"<<endl;
}