import sys

sys.setrecursionlimit(10 ** 7)
input = sys.stdin.readline
f_inf = float('inf')
mod = 10 ** 9 + 7


def resolve():
    n, r = map(int, input().split())
    diff = 100 * (max(0, 10 - n))
    print(r + diff)

if __name__ == '__main__':
    resolve() import sys sys sys.setrecursionlimit(10 ** 7) sys.setrecursionlimit sys setrecursionlimit 10 ** 7 10 7 input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline f_inf = float('inf') f_inf float('inf') float 'inf' mod = 10 ** 9 + 7 mod 10 ** 9 + 7 10 ** 9 10 9 7 def resolve():
    n, r = map(int, input().split())
    diff = 100 * (max(0, 10 - n))
    print(r + diff) resolve n, r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r diff = 100 * (max(0, 10 - n)) diff 100 * (max(0, 10 - n)) 100 max(0, 10 - n) max 0 10 - n 10 n print(r + diff) print r + diff r diff if __name__ == '__main__':
    resolve() __name__ == '__main__' __name__ '__main__' resolve() resolve f_inf = float('inf') float('inf') f_inf def resolve():
    n, r = map(int, input().split())
    diff = 100 * (max(0, 10 - n))
    print(r + diff) def resolve():
    n, r = map(int, input().split())
    diff = 100 * (max(0, 10 - n))
    print(r + diff) resolve input = sys.stdin.readline sys.stdin.readline input mod = 10 ** 9 + 7 10 ** 9 + 7 mod
import sys

sys.setrecursionlimit(10 ** 7)
input = sys.stdin.readline
f_inf = float('inf')
mod = 10 ** 9 + 7


def resolve():
    n, r = map(int, input().split())
    diff = 100 * (max(0, 10 - n))
    print(r + diff)

if __name__ == '__main__':
    resolve()
