-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodeForces236A.java
More file actions
35 lines (35 loc) · 907 Bytes
/
Copy pathCodeForces236A.java
File metadata and controls
35 lines (35 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package codeforces;
import java.util.Scanner;
public class CodeForces236A {
public static void main(String[] args) {
String s;
Scanner ob = new Scanner(System.in);
s = ob.nextLine();
char a[] = new char[s.length()];
int k = 0;
int sum = 0;
for (char c = 'a'; c <= 'z'; c++) {
for (int i = 0; i < s.length(); i++) {
if (c == s.charAt(i)) {
k++;
}
}
//System.out.println(c+"="+k);
if (k > 1) {
k = 1;
sum = sum + k;
} else {
sum = sum + k;
}
k = 0;
}
if(sum%2==0)
{
System.out.println("CHAT WITH HER!");
}
else
{
System.out.println("IGNORE HIM!");
}
}
}