output_description: Print his Inner Rating.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N R
attempt: # 入力が10**5とかになったときに100ms程度早い
  import sys
  
  read = sys.stdin.readline
  
  
  def read_ints():
      return list(map(int, read().split()))
  
  
  def read_a_int():
      return int(read())
  
  
  def read_matrix(H):
      """
      H is number of rows
      """
      return [list(map(int, read().split())) for _ in range(H)]
  
  
  def read_map(H):
      """
      H is number of rows
      文字列で与えられた盤面を読み取る用
      """
      return [read()[:-1] for _ in range(H)]
  
  
  def read_tuple(H):
      """
      H is number of rows
      """
      ret = []
      for _ in range(H):
          ret.append(tuple(map(int, read().split())))
      return ret
  
  
  def read_col(H, n_cols):
      """
      H is number of rows
      n_cols is number of cols
  
      A列、B列が与えられるようなとき
      """
      ret = [[] for _ in range(n_cols)]
      for _ in range(H):
          tmp = list(map(int, read().split()))
          for col in range(n_cols):
              ret[col].append(tmp[col])
  
      return ret
  
  
  N, R = read_ints()
  
  if N >= 10:
      print(R)
  else:
      print(R + (100 * (10 - N)))
  
problem_description: Statement
  
  Takahashi is a member of a programming competition site, _ButCoder_.
  
  Each member of ButCoder is assigned two values: **Inner Rating** and
  **Displayed Rating**.
  
  The Displayed Rating of a member is equal to their Inner Rating if the member
  has participated in 10 or more contests. Otherwise, the Displayed Rating will
  be their Inner Rating minus 100 \times (10 - K) when the member has
  participated in K contests.
  
  Takahashi has participated in N contests, and his Displayed Rating is R. Find
  his Inner Rating.
samples: [{"input": "2 2919", "output": "3719\n    \n\nTakahashi has participated in 2 contests, which is less than 10, so his\nDisplayed Rating is his Inner Rating minus 100 \\times (10 - 2) = 800.\n\nThus, Takahashi's Inner Rating is 2919 + 800 = 3719.\n\n* * *"}, {"input": "22 3051", "output": "3051"}]