package javaapplication59;
import java.util.*;
public class JavaApplication59 {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
while(input.hasNext()){
int n=input.nextInt();
while(n<0){break;}
while(n<=5){
System.out.println("0");
break;
}
while(n>6&n<11){
System.out.println("590");break;
}
while(n>12&n<17){
System.out.println("790");break;
}
while(n>18&n<59){
System.out.println("890");break;
}
while(n>60){
System.out.println("399");break;
}
}
}
}
package javaapplication59;
import java.util.*;
public class JavaApplication59 {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
while(input.hasNext()){
int n=input.nextInt();
while(n<0){break;}
while(n<=5){
System.out.println("0");
break;
}
while(n>6&n<11){
System.out.println("590");break;
}
while(n>12&n<17){
System.out.println("790");break;
}
while(n>18&n<59){
System.out.println("890");break;
}
while(n>60){
System.out.println("399");break;
}
}
}
}
n=6 11 12 17 18 59 60 的時候沒有判斷到