#!/usr/bin/env python3
import collections as cl
import sys


def II():
    return int(sys.stdin.readline())


def MI():
    return map(int, sys.stdin.readline().split())


def LI():
    return list(map(int, sys.stdin.readline().split()))


def main():
    N, R = MI()
    if N >= 10:
        print(R)
    else:
        print(R + 100 * (10 - N))


main() import collections as cl collections import sys sys def II():
    return int(sys.stdin.readline()) II return int(sys.stdin.readline()) int(sys.stdin.readline()) int sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline def MI():
    return map(int, sys.stdin.readline().split()) MI return map(int, sys.stdin.readline().split()) 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 def LI():
    return list(map(int, sys.stdin.readline().split())) LI return list(map(int, sys.stdin.readline().split())) 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 def main():
    N, R = MI()
    if N >= 10:
        print(R)
    else:
        print(R + 100 * (10 - N)) main N, R = MI() N MI() MI R 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 main() main def main():
    N, R = MI()
    if N >= 10:
        print(R)
    else:
        print(R + 100 * (10 - N)) def main():
    N, R = MI()
    if N >= 10:
        print(R)
    else:
        print(R + 100 * (10 - N)) main def LI():
    return list(map(int, sys.stdin.readline().split())) def LI():
    return list(map(int, sys.stdin.readline().split())) LI def MI():
    return map(int, sys.stdin.readline().split()) def MI():
    return map(int, sys.stdin.readline().split()) MI def II():
    return int(sys.stdin.readline()) def II():
    return int(sys.stdin.readline()) II
#!/usr/bin/env python3
import collections as cl
import sys


def II():
    return int(sys.stdin.readline())


def MI():
    return map(int, sys.stdin.readline().split())


def LI():
    return list(map(int, sys.stdin.readline().split()))


def main():
    N, R = MI()
    if N >= 10:
        print(R)
    else:
        print(R + 100 * (10 - N))


main()
