import math
def I():
  return input()
def II():
  return int(input())
def MII():
  return map(int, input().split())
def LMII():
  return list(map(int, input().split()))

n, r = MII()
print(r+100*max((10-n), 0)) import math math def I():
  return input() I return input() input() input def II():
  return int(input()) II return int(input()) int(input()) int input() input def MII():
  return map(int, input().split()) MII return map(int, input().split()) map(int, input().split()) map int input().split() ().split () input split def LMII():
  return list(map(int, input().split())) LMII return list(map(int, input().split())) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split n, r = MII() n MII() MII r print(r+100*max((10-n), 0)) print r+100*max((10-n), 0) r 100*max((10-n), 0) 100 max((10-n), 0) max 10-n 10 n 0 def II():
  return int(input()) def II():
  return int(input()) II def I():
  return input() def I():
  return input() I def LMII():
  return list(map(int, input().split())) def LMII():
  return list(map(int, input().split())) LMII n, r = MII() MII() n r = MII() MII() r def MII():
  return map(int, input().split()) def MII():
  return map(int, input().split()) MII
import math
def I():
  return input()
def II():
  return int(input())
def MII():
  return map(int, input().split())
def LMII():
  return list(map(int, input().split()))

n, r = MII()
print(r+100*max((10-n), 0))
