Puzzles

Weekly Puzzle:

There are 8 light switches on the wall all initially flipped off. The input file is a series of numbers, 0-7, where 0 goes to the first switch, 1 goes to the second, 2 to the third, until 7 going to the 8th switch. Each time a number is listed, its switch is flipped. After all flips, what are the states of each switch?

Test Data: