-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path17388.java
More file actions
30 lines (28 loc) · 775 Bytes
/
17388.java
File metadata and controls
30 lines (28 loc) · 775 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
// 17388. 와글와글 숭고한
// 2019.08.11
// 입문용
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String s = bf.readLine();
String line[] = s.split(" ");
int a = Integer.parseInt(line[0]);
int b = Integer.parseInt(line[1]);
int c = Integer.parseInt(line[2]);
if (a + b + c >= 100) {
System.out.println("OK");
} else {
int minCnt = Math.min(Math.min(a, b), c);
if (minCnt == a) {
System.out.println("Soongsil");
} else if (minCnt == b) {
System.out.println("Korea");
} else {
System.out.println("Hanyang");
}
}
}
}