output_description: If N is a palindromic number, print `Yes`; otherwise, print `No`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
attempt: sec = input().split(" ")
  # sec = ['0','75','25','100']
  # sec = ['0','33','66','99']
  # print(sec[0],sec[1],sec[2],sec[3])
  # 開始時間選定
  start = max(sec[0], sec[2])
  # print('開始:' + start)
  # 終了時間選定
  end = min(sec[1], sec[3])
  # print('終了:' + end)
  kekka = int(end) - int(start)
  if kekka < 1:
      kekka = 0
      print(kekka)
  else:
      print(kekka)
  
problem_description: Statement
  
  You are given a three-digit positive integer N.  
  Determine whether N is a _palindromic number_.  
  Here, a palindromic number is an integer that reads the same backward as
  forward in decimal notation.
samples: [{"input": "575", "output": "Yes\n    \n\nN=575 is also 575 when read backward, so it is a palindromic number. You\nshould print `Yes`.\n\n* * *"}, {"input": "123", "output": "No\n    \n\nN=123 becomes 321 when read backward, so it is not a palindromic number. You\nshould print `No`.\n\n* * *"}, {"input": "812", "output": "No"}]