output_description: Print the sum of all numbers among the first N terms of the FizzBuzz sequence.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
attempt: N = int(input())
  loop = N // 15
  amari = N % 15
  
  if loop == 0:
      oomaka = 0
      tuide = 1
  else:
      oomaka = 60 * loop + 135 * (loop - 1)
      tuide = 15 * loop
  
  if amari == 0:
      output = oomaka
      print(output)
  if amari == 1:
      output = oomaka + tuide + 1
      print(output)
  if amari == 2 or amari == 3:
      output = oomaka + tuide * 2 + 3
      print(output)
  if amari == 4 or amari == 5 or amari == 6:
      output = oomaka + 7 + tuide * 3
      print(output)
  if amari == 7:
      output = oomaka + 14 + tuide * 4
      print(output)
  if amari == 8 or amari == 9:
      output = oomaka + 22 + tuide * 5
      print(output)
  if amari == 11 or amari == 12:
      output = oomaka + 33 + tuide * 6
      print(output)
  if amari == 13:
      output = oomaka + 46 + tuide * 7
      print(output)
  if amari == 14:
      output = oomaka + 60 + tuide * 8
      print(output)
  
problem_description: Statement
  
  Let us define the **FizzBuzz sequence** a_1,a_2,... as follows:
  
    * If both 3 and 5 divides i, a_i=\mbox{FizzBuzz}.
    * If the above does not hold but 3 divides i, a_i=\mbox{Fizz}.
    * If none of the above holds but 5 divides i, a_i=\mbox{Buzz}.
    * If none of the above holds, a_i=i.
  
  Find the sum of all numbers among the first N terms of the FizzBuzz sequence.
samples: [{"input": "15", "output": "60\n    \n\nThe first 15 terms of the FizzBuzz sequence are:\n\n1,2,\\mbox{Fizz},4,\\mbox{Buzz},\\mbox{Fizz},7,8,\\mbox{Fizz},\\mbox{Buzz},11,\\mbox{Fizz},13,14,\\mbox{FizzBuzz}\n\nAmong them, numbers are 1,2,4,7,8,11,13,14, and the sum of them is 60.\n\n* * *"}, {"input": "1000000", "output": "266666333332\n    \n\nWatch out for overflow."}]