import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
INF = 10**9
mod = 10**9+7

N,R = I()
if N < 10:
    print(R+(10-N)*100)
else:
    print(R) import sys sys import math math import itertools itertools import bisect bisect from copy import copy from collections import deque,Counter from decimal import Decimal def s(): return input() s def i(): return int(input()) i def S(): return input().split() S def I(): return map(int,input().split()) I def L(): return list(input().split()) L def l(): return list(map(int,input().split())) l def lcm(a,b): return a*b//math.gcd(a,b) lcm a a b b sys.setrecursionlimit(10 ** 9) sys.setrecursionlimit sys setrecursionlimit 10 ** 9 10 9 INF = 10**9 INF 10**9 10 9 mod = 10**9+7 mod 10**9+7 10**9 10 9 7 N,R = I() N I() I R if N < 10:
    print(R+(10-N)*100)
else:
    print(R) N < 10 N 10 print(R+(10-N)*100) print R+(10-N)*100 R (10-N)*100 10-N 10 N 100 print(R) print R N,R = I() I() N def S(): return input().split() def S(): return input().split() S INF = 10**9 10**9 INF def I(): return map(int,input().split()) def I(): return map(int,input().split()) I def s(): return input() def s(): return input() s def L(): return list(input().split()) def L(): return list(input().split()) L def lcm(a,b): return a*b//math.gcd(a,b) def lcm(a,b): return a*b//math.gcd(a,b) lcm def i(): return int(input()) def i(): return int(input()) i mod = 10**9+7 10**9+7 mod R = I() I() R def l(): return list(map(int,input().split())) def l(): return list(map(int,input().split())) l
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
INF = 10**9
mod = 10**9+7

N,R = I()
if N < 10:
    print(R+(10-N)*100)
else:
    print(R)