-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboy.java
More file actions
24 lines (23 loc) · 698 Bytes
/
boy.java
File metadata and controls
24 lines (23 loc) · 698 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
import java.util.*;
public class boy {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
int unique = 0;
for (int i = 0; i < s.length(); i++) {
boolean isUnique = true;
for (int j = 0; j < i; j++) {
if (s.charAt(i) == s.charAt(j)) {
isUnique = false;
break;
}
}
if (isUnique) unique++;
}
if (unique % 2 == 0)
System.out.println("CHAT WITH HER!");
else
System.out.println("IGNORE HIM!");
sc.close();
}
}