mod = 1e9+7
def add(a, b):
    c = a + b
    if c >= mod:
        c -= mod
    return c

def main():
    N, R = [int(x) for x in raw_input().split()]
    
    if N >= 10:
      print(R)
    else:
      print(R + ((10 - N) * 100))
    
    

main() mod = 1e9+7 mod 1e9+7 1e9 7 def add(a, b):
    c = a + b
    if c >= mod:
        c -= mod
    return c add c = a + b c a + b a b if c >= mod:
        c -= mod
     c >= mod c mod c -= mod c mod return c c a a b b def main():
    N, R = [int(x) for x in raw_input().split()]
    
    if N >= 10:
      print(R)
    else:
      print(R + ((10 - N) * 100))
    
     main int(x) for x in raw_input().split() for x in raw_input().split() x raw_input().split() ().split () raw_input split for x in raw_input().split() int(x) int x N, R = [int(x) for x in raw_input().split()] N [int(x) for x in raw_input().split()] R if N >= 10:
      print(R)
    else:
      print(R + ((10 - N) * 100))
    
     N >= 10 N 10 print(R) print R print(R + ((10 - N) * 100)) print R + ((10 - N) * 100) R (10 - N) * 100 10 - N 10 N 100 main() main def main():
    N, R = [int(x) for x in raw_input().split()]
    
    if N >= 10:
      print(R)
    else:
      print(R + ((10 - N) * 100))
    
     def main():
    N, R = [int(x) for x in raw_input().split()]
    
    if N >= 10:
      print(R)
    else:
      print(R + ((10 - N) * 100))
    
     main mod = 1e9+7 1e9+7 mod def add(a, b):
    c = a + b
    if c >= mod:
        c -= mod
    return c def add(a, b):
    c = a + b
    if c >= mod:
        c -= mod
    return c add
mod = 1e9+7
def add(a, b):
    c = a + b
    if c >= mod:
        c -= mod
    return c

def main():
    N, R = [int(x) for x in raw_input().split()]
    
    if N >= 10:
      print(R)
    else:
      print(R + ((10 - N) * 100))
    
    

main()