def main():
    inside_rate, outside_rate = map(int, input().split())
    correction = 0
    if inside_rate < 10:
        correction = 100 * (10 - inside_rate)
    print(outside_rate + correction)
main() def main():
    inside_rate, outside_rate = map(int, input().split())
    correction = 0
    if inside_rate < 10:
        correction = 100 * (10 - inside_rate)
    print(outside_rate + correction) main inside_rate, outside_rate = map(int, input().split()) inside_rate map(int, input().split()) map int input().split() ().split () input split outside_rate correction = 0 correction 0 if inside_rate < 10:
        correction = 100 * (10 - inside_rate)
     inside_rate < 10 inside_rate 10 correction = 100 * (10 - inside_rate) correction 100 * (10 - inside_rate) 100 10 - inside_rate 10 inside_rate print(outside_rate + correction) print outside_rate + correction outside_rate correction main() main def main():
    inside_rate, outside_rate = map(int, input().split())
    correction = 0
    if inside_rate < 10:
        correction = 100 * (10 - inside_rate)
    print(outside_rate + correction) def main():
    inside_rate, outside_rate = map(int, input().split())
    correction = 0
    if inside_rate < 10:
        correction = 100 * (10 - inside_rate)
    print(outside_rate + correction) main
def main():
    inside_rate, outside_rate = map(int, input().split())
    correction = 0
    if inside_rate < 10:
        correction = 100 * (10 - inside_rate)
    print(outside_rate + correction)
main()