#!/usr/bin/env python3
# Generated by https://github.com/kyuridenamida/atcoder-tools
from typing import *
import collections
import functools
import itertools
import math
import sys

INF = float('inf')


def solve(N: int, R: int):
    return R + (0 if N >= 10 else 100*(10-N))


def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    R = int(next(tokens))  # type: int
    print(f'{solve(N, R)}')


if __name__ == '__main__':
    main() from typing import * import collections collections import functools functools import itertools itertools import math math import sys sys INF = float('inf') INF float('inf') float 'inf' def solve(N: int, R: int):
    return R + (0 if N >= 10 else 100*(10-N)) solve return R + (0 if N >= 10 else 100*(10-N)) R + (0 if N >= 10 else 100*(10-N)) R 0 if N >= 10 else 100*(10-N) N >= 10 N 10 0 100*(10-N) 100 10-N 10 N N: int N R: int R def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    R = int(next(tokens))  # type: int
    print(f'{solve(N, R)}') main sys.setrecursionlimit(10 ** 6) sys.setrecursionlimit sys setrecursionlimit 10 ** 6 10 6 def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
     iterate_tokens for line in sys.stdin:
            for word in line.split():
                yield word
     line sys.stdin sys stdin for word in line.split():
                yield word
     word line.split() line.split line split yield word word tokens = iterate_tokens() tokens iterate_tokens() iterate_tokens N = int(next(tokens)) N int(next(tokens)) int next(tokens) next tokens R = int(next(tokens)) R int(next(tokens)) int next(tokens) next tokens print(f'{solve(N, R)}') print f'{solve(N, R)}' if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def solve(N: int, R: int):
    return R + (0 if N >= 10 else 100*(10-N)) def solve(N: int, R: int):
    return R + (0 if N >= 10 else 100*(10-N)) solve INF = float('inf') float('inf') INF def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    R = int(next(tokens))  # type: int
    print(f'{solve(N, R)}') def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    R = int(next(tokens))  # type: int
    print(f'{solve(N, R)}') main
#!/usr/bin/env python3
# Generated by https://github.com/kyuridenamida/atcoder-tools
from typing import *
import collections
import functools
import itertools
import math
import sys

INF = float('inf')


def solve(N: int, R: int):
    return R + (0 if N >= 10 else 100*(10-N))


def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    R = int(next(tokens))  # type: int
    print(f'{solve(N, R)}')


if __name__ == '__main__':
    main()
