process.stdin.resume();
process.stdin.setEncoding('utf8');
var input = '';
process.stdin.on('data', function (chunk) {
  input += chunk;
});
process.stdin.on('end', function () {
  var lines = input.split('\n');
  var l = 0;
  while (true) {
    var w = Number(lines[l++]);
    if (w === -1) {
      break;
    }
    var ans = 1150;
    if (w > 10) {
      ans += Math.min(10, w - 10) * 125;
    }
    if (w > 20) {
      ans += Math.min(10, w - 20) * 140;
    }
    if (w > 30) {
      ans += (w - 30) * 160;
    }
    console.log(4280 - ans);
  }
});