def resolve():
    N, R = list(map(int, input().split()))
    print(R if N >= 10 else R+100*(10-N))

if '__main__' == __name__:
    resolve() def resolve():
    N, R = list(map(int, input().split()))
    print(R if N >= 10 else R+100*(10-N)) resolve N, R = list(map(int, input().split())) N list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split R print(R if N >= 10 else R+100*(10-N)) print 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 if '__main__' == __name__:
    resolve() '__main__' == __name__ '__main__' __name__ resolve() resolve def resolve():
    N, R = list(map(int, input().split()))
    print(R if N >= 10 else R+100*(10-N)) def resolve():
    N, R = list(map(int, input().split()))
    print(R if N >= 10 else R+100*(10-N)) resolve
def resolve():
    N, R = list(map(int, input().split()))
    print(R if N >= 10 else R+100*(10-N))

if '__main__' == __name__:
    resolve()