[N,R]=[int(item)for item in input().split()]
print(R if N>=10 else R+100*(10-N)) int(item)for item in input().split() for item in input().split() item input().split() ().split () input split for item in input().split() int(item) int item [N,R]=[int(item)for item in input().split()] [N,R] N R [int(item)for item in input().split()] 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
[N,R]=[int(item)for item in input().split()]
print(R if N>=10 else R+100*(10-N))