output_description: If the date 2019-M_1-D_1 is the last day of a month, print `1`; otherwise,
  print `0`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      M_1 D_1
      M_2 D_2
attempt: # coding:utf-8
  import math
  
  X = int(input())
  if X < 100:
      print("0")
      exit()
  c = 0
  x2 = X % 100
  for i in range(100000):
      x = 0
      if x2 / 5 > 1:
          x = math.floor(x2 / 5)
          x2 -= 5 * x
          five = 5 * x
      elif x2 / 4 >= 1:
          x = math.floor(x2 / 4)
          x2 -= 4 * x
          four = 4 * x
      elif x2 / 3 >= 1:
          x = math.floor(x2 / 3)
          x2 -= 3 * x
          three = 3 * x
      elif x2 / 2 >= 1:
          x = math.floor(x2 / 2)
          x2 -= 2 * x
          two = 2 * x
      elif x2 / 1 == 1:
          x = math.floor(x2 / 1)
          x2 -= 1 * x
          one = 1 * x
      c += x
      if x2 == 0:
          break
  if c == 0 or X >= c * 100:
      print("1")
  else:
      print("0")
  
problem_description: Statement
  
  In this problem, a date is written as Y-M-D. For example, 2019-11-30 means
  November 30, 2019.
  
  Integers M_1, D_1, M_2, and D_2 will be given as input.  
  It is known that the date 2019-M_2-D_2 follows 2019-M_1-D_1.  
  Determine whether the date 2019-M_1-D_1 is the last day of a month.
samples: [{"input": "11 16\n    11 17", "output": "0\n    \n\nNovember 16 is not the last day of a month.\n\n* * *"}, {"input": "11 30\n    12 1", "output": "1\n    \n\nNovember 30 is the last day of November."}]