#include <stdio.h>
int main()
{
int N;
while(scanf("%d",&N) !=EOF){
if(N>0&&N<=10){
printf("%d ",N*6);
}
else if(N>=11&&N<=20){
printf("%d ",60+(N-10)*2);
}
else if(N>=21&&N<=40){
printf("%d ",80+(N-20));
}
else if(N>40){
printf("100");
}
else{
printf("\n");
}
}
return 0;
}
-----------------------------------------------------------------------------
#0的題目說我沒有輸出任何一行東西,到底哪裡寫錯了?