func readInts() -> [Int] {
    return readLine()!.split(separator: " ").map { Int($0)! }
}

func main() {
    let line = readInts()
    let n = line[0]
    let r = line[1]
    
    if n >= 10 {
        print(r)
    } else {
        print(r + 100 * (10 - n))
    }
}

main()
