old_contents: # Day 19 of Advent of Code
  from math import floor
  
  elves = list(range(1, 3012211))
  
  while len(elves) > 1:
      print(len(elves))
      indexes = []
      indexes += list(range(1, floor(len(elves)/2+1)))
      if len(elves) % 2 == 1:
          indexes.append(0)
      for i in indexes:
          elves.pop(i)
  
  print(elves[0])
  
new_contents: # Day 19 of Advent of Code
  
  i = 0
  for o in range(1, 3012211):
      i = (i+2)%o
  print(i+1)
  
subject: Correct Day19p1