N , R = map( int,input().split() )

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

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