#include <iostream>
using namespace std;
int main(void){
    int w, m;
   while(cin >> w && w > -1){
       if(w > 30){
           m = 1150 + 1250 + 1400 + 160*(w - 30);
       }else if(w > 20){
           m = 1150 + 1250 + 140*(w - 20);
       }else if(w > 10){
           m = 1150 + 125*(w - 10);
       }else{
           m = 1150;
       }
       cout << 4280 - m << endl;
   }
}
