input.txt 348 B

123456
  1. Disc #1 has 13 positions; at time=0, it is at position 10.
  2. Disc #2 has 17 positions; at time=0, it is at position 15.
  3. Disc #3 has 19 positions; at time=0, it is at position 17.
  4. Disc #4 has 7 positions; at time=0, it is at position 1.
  5. Disc #5 has 5 positions; at time=0, it is at position 0.
  6. Disc #6 has 3 positions; at time=0, it is at position 1.