import sys
import math
from collections import deque
from collections import defaultdict

def main():
    n,r = list(map(int,sys.stdin.readline().split()))
    if n>=10:
        ans = r
    else: ans = 100*(10-n)+r
    print(ans)
if __name__ == "__main__":
    main() import sys sys import math math from collections import deque from collections import defaultdict def main():
    n,r = list(map(int,sys.stdin.readline().split()))
    if n>=10:
        ans = r
    else: ans = 100*(10-n)+r
    print(ans) main n,r = list(map(int,sys.stdin.readline().split())) n list(map(int,sys.stdin.readline().split())) list map(int,sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split r if n>=10:
        ans = r
    else: ans = 100*(10-n)+r
     n>=10 n 10 ans = r ans r print(ans) print ans if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    n,r = list(map(int,sys.stdin.readline().split()))
    if n>=10:
        ans = r
    else: ans = 100*(10-n)+r
    print(ans) def main():
    n,r = list(map(int,sys.stdin.readline().split()))
    if n>=10:
        ans = r
    else: ans = 100*(10-n)+r
    print(ans) main
import sys
import math
from collections import deque
from collections import defaultdict

def main():
    n,r = list(map(int,sys.stdin.readline().split()))
    if n>=10:
        ans = r
    else: ans = 100*(10-n)+r
    print(ans)
if __name__ == "__main__":
    main()