import Foundation

// 1
//let N = Int(readLine()!)!

// 1 2
let split = readLine()!.componentsSeparatedByString(" ")
let N = Int(split[0])!
let R = Int(split[1])!

if N < 10 {
  print(R + (100 * (10 - N)))
} else {
  print(R)
}
// 1 2 3 4 5
//let array = readLine()!.componentsSeparatedByString(" ").map { Int($0)! }