import sys



def solve(N, R):

    print((R if N >= 10 else R + 100 * (10 - N)))



if __name__ == '__main__':

    N, R = list(map(int, sys.stdin.readline().strip().split(" ")))

    solve(N, R)
import sys



N, R = list(map(int, sys.stdin.readline().split()))

print((R if 10 <= N else R + 100 * (10 - N)))
import sys


def solve(N, R):
    print((R if N >= 10 else R + 100 * (10 - N)))


if __name__ == "__main__":
    N, R = list(map(int, sys.stdin.readline().strip().split(" ")))
    solve(N, R)

import sys

N, R = list(map(int, sys.stdin.readline().split()))
print((R if 10 <= N else R + 100 * (10 - N)))

- -def solve(N, R): -    print((R if N >= 10 else R + 100 * (10 - N))) - - -if __name__ == "__main__": -    N, R = list(map(int, sys.stdin.readline().strip().split(" "))) -    solve(N, R) +N, R = list(map(int, sys.stdin.readline().split())) +print((R if 10 <= N else R + 100 * (10 - N)))