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: # input
  left, right, fizz, buzz = map(int, input().split())
  
  # define
  nums = right - left + 1
  fizzbuzz = fizz * buzz
  
  # main
  if left % fizz == 0:
      fizz_nums = right // fizz - left // fizz + 1
  else:
      fizz_nums = right // fizz - (left // fizz + 1) + 1
  
  if left % buzz == 0:
      buzz_nums = right // buzz - left // buzz + 1
  else:
      buzz_nums = right // buzz - (left // buzz + 1) + 1
  
  if left % fizzbuzz == 0:
      fizzbuzz_nums = right // fizzbuzz - left // fizzbuzz + 1
  else:
      fizzbuzz_nums = right // fizzbuzz - (left // fizzbuzz + 1) + 1
  
  # output
  print(nums - (fizz_nums + buzz_nums - fizzbuzz_nums))
  
  # debug
  """
  debug = int(input())
  if debug == (nums - (fizz_nums + buzz_nums - fizzbuzz_nums)):
    print("AC")
  else:
    print("WA")
  """
  
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"}]