import sys
input = sys.stdin.readline
rs = lambda: input().strip()
ri = lambda: int(input())
rl = lambda: list(map(int, input().split()))
mod = 10**9 + 7

N, R = rl()

ans = R
if N < 10:
	ans += 100 * (10-N)
print(ans) import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline rs = lambda: input().strip() rs lambda: input().strip() input().strip() ().strip () input strip ri = lambda: int(input()) ri lambda: int(input()) int(input()) int input() input rl = lambda: list(map(int, input().split())) rl lambda: list(map(int, input().split())) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split mod = 10**9 + 7 mod 10**9 + 7 10**9 10 9 7 N, R = rl() N rl() rl R ans = R ans R if N < 10:
	ans += 100 * (10-N) N < 10 N 10 ans += 100 * (10-N) ans 100 * (10-N) 100 10-N 10 N print(ans) print ans ans += 100 * (10-N) 100 * (10-N) ans R = rl() rl() R rs = lambda: input().strip() lambda: input().strip() rs mod = 10**9 + 7 10**9 + 7 mod input = sys.stdin.readline sys.stdin.readline input ri = lambda: int(input()) lambda: int(input()) ri N, R = rl() rl() N ans = R R ans rl = lambda: list(map(int, input().split())) lambda: list(map(int, input().split())) rl
import sys
input = sys.stdin.readline
rs = lambda: input().strip()
ri = lambda: int(input())
rl = lambda: list(map(int, input().split()))
mod = 10**9 + 7

N, R = rl()

ans = R
if N < 10:
	ans += 100 * (10-N)
print(ans)