import java.util.Scanner;
public class SwitchCaseTest {
public static void main(String[] args) {
System.out.println("성적을 입력하세요");
while(true){
Scanner sc = new Scanner(System.in);
int m = sc.nextInt();
switch(m/10){
case 10 :
System.out.println("수");
break;
case 9 :
System.out.println("수");
break;
case 8 :
System.out.println("우");
break;
case 7 :
System.out.println("미");
break;
case 6 :
System.out.println("양");
break;
default :
System.out.println("가");
break;
}
}
}
}