output_description: Print the number of integers between A and B (inclusive) that can be evenly
  divided by neither C nor D.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B C D
attempt: lista = input().split(" ")
  a, b, c, d = lista
  a = int(a)
  b = int(b)
  c = int(c)
  d = int(d)
  p1 = 1
  p2 = 0
  p3 = 0
  p4 = 0
  # minc
  a1 = a
  a2 = a
  b1 = b
  b2 = b
  while a1 <= b:
      if a1 % c == 0:
          p1 = a1
          break
      a1 += 1
  # maxc
  while b1 >= a:
      if b1 % c == 0:
          p3 = b1
          break
      b1 -= 1
  # mind
  
  while a2 <= b:
      if a2 % d == 0:
          p2 = a2
          break
      a2 += 1
  # maxd
  while b2 >= a:
      if b2 % d == 0:
          p4 = b2
          break
      b2 -= 1
  mc = (p3 - p1) / c
  md = (p4 - p2) / d
  print((b - a) - int(md + mc))
  
problem_description: Statement
  
  You are given four integers A, B, C, and D. Find the number of integers
  between A and B (inclusive) that can be evenly divided by neither C nor D.
samples: [{"input": "4 9 2 3", "output": "2\n    \n\n5 and 7 satisfy the condition.\n\n* * *"}, {"input": "10 40 6 8", "output": "23\n    \n\n* * *"}, {"input": "314159265358979323 846264338327950288 419716939 937510582", "output": "532105071133627368"}]