import math

import itertools

import fractions

import heapq

import collections

import bisect

import sys

import copy



sys.setrecursionlimit(10**9)

mod = 10**7+9

inf = 10**20



def LI(): return list(map(int, sys.stdin.readline().split()))

def LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines()]

def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]

def LF(): return [float(x) for x in sys.stdin.readline().split()]

def LS(): return sys.stdin.readline().split()

def I(): return int(sys.stdin.readline())

def F(): return float(sys.stdin.readline())

def S(): return eval(input())



n,r = LI()

if n<10:

    print((r+(100*(10-n))))

else:

    print(r)
n,r = list(map(int,input().split()))



if n>=10:

    print(r)

else:

    t = 100*(10-n)

    print((r+t))
import math
import itertools
import fractions
import heapq
import collections
import bisect
import sys
import copy

sys.setrecursionlimit(10**9)
mod = 10**7 + 9
inf = 10**20


def LI():
    return list(map(int, sys.stdin.readline().split()))


def LLI():
    return [list(map(int, l.split())) for l in sys.stdin.readlines()]


def LI_():
    return [int(x) - 1 for x in sys.stdin.readline().split()]


def LF():
    return [float(x) for x in sys.stdin.readline().split()]


def LS():
    return sys.stdin.readline().split()


def I():
    return int(sys.stdin.readline())


def F():
    return float(sys.stdin.readline())


def S():
    return eval(input())


n, r = LI()
if n < 10:
    print((r + (100 * (10 - n))))
else:
    print(r)

n, r = list(map(int, input().split()))
if n >= 10:
    print(r)
else:
    t = 100 * (10 - n)
    print((r + t))

-import math -import itertools -import fractions -import heapq -import collections -import bisect -import sys -import copy - -sys.setrecursionlimit(10**9) -mod = 10**7 + 9 -inf = 10**20 - - -def LI(): -    return list(map(int, sys.stdin.readline().split())) - - -def LLI(): -    return [list(map(int, l.split())) for l in sys.stdin.readlines()] - - -def LI_(): -    return [int(x) - 1 for x in sys.stdin.readline().split()] - - -def LF(): -    return [float(x) for x in sys.stdin.readline().split()] - - -def LS(): -    return sys.stdin.readline().split() - - -def I(): -    return int(sys.stdin.readline()) - - -def F(): -    return float(sys.stdin.readline()) - - -def S(): -    return eval(input()) - - -n, r = LI() -if n < 10: -    print((r + (100 * (10 - n)))) +n, r = list(map(int, input().split())) +if n >= 10: +    print(r) -    print(r) +    t = 100 * (10 - n) +    print((r + t))