n, r = [int(i) for i in input().split()]
ans = r if n >= 10 else r + 100 *(10 - n)
print(ans) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i n, r = [int(i) for i in input().split()] n [int(i) for i in input().split()] r ans = r if n >= 10 else r + 100 *(10 - n) ans r if n >= 10 else r + 100 *(10 - n) n >= 10 n 10 r r + 100 *(10 - n) r 100 *(10 - n) 100 10 - n 10 n print(ans) print ans ans = r if n >= 10 else r + 100 *(10 - n) r if n >= 10 else r + 100 *(10 - n) ans n, r = [int(i) for i in input().split()] [int(i) for i in input().split()] n r = [int(i) for i in input().split()] [int(i) for i in input().split()] r
n, r = [int(i) for i in input().split()]
ans = r if n >= 10 else r + 100 *(10 - n)
print(ans)