#include <stdio.h>
int main(void){
    int n,x;
    while(1){
        scanf("%d",&n);
        if(n==-1) break;
       
        if(n<=10) x=1150;
        else if(10<n&&n<=20) x=1150+125*(n-10);
        else if(20<n&&n<=30) x=1150+1250+140*(n-20);
        else x=1150+1250+1400+160*(n-30);
    
        printf("%d\n",4280-x);
    }
    return 0;
}

