import os, sys, re, math

(N, R) = [int(n) for n in input().split()]

if N >= 10:
    print(R)
else:
    print(R + 100 * (10 - N)) import os, sys, re, math os sys re math int(n) for n in input().split() for n in input().split() n input().split() ().split () input split for n in input().split() int(n) int n (N, R) = [int(n) for n in input().split()] (N, R) N R [int(n) for n in input().split()] if N >= 10:
    print(R)
else:
    print(R + 100 * (10 - N)) N >= 10 N 10 print(R) print R print(R + 100 * (10 - N)) print R + 100 * (10 - N) R 100 * (10 - N) 100 10 - N 10 N
import os, sys, re, math

(N, R) = [int(n) for n in input().split()]

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