'''
Feb 2016 Puzzler of the Month

Dave Vogel
1/29/16

http://web.monroecc.edu/manila/webfiles/MathPuzzler/Puzzler162.pdf

A circular table is divided into 6 equal sections, each of which
is assigned to the 6 individuals: Andy, Bill, Cody, Deb, Eve, and Faye.
In the center of the table is a circular spinner containing the equally
spaced numbers 1 - 6.
A game is played where the spinner is spun 5 times and each time the
players receive the score of the number whose arrow points to their
section of the table. At the end of the 5 spins, the player with the highest
total score is the winner. If there is a tie for the high score, there is no
winner and the entire game is replayed. If the arrows land on the lines
separating the sections, the spinner is re-spun.
The first game begins with the spinner landing as shown in the figure above.
At this point, Deb is in the lead with 6 points. After the second spin, Eve
takes the lead and in the end, Bill is the winner.
Use this information to determine the final score of each player. 

Note: The spinner is 6 pointed, equally spaced pointers with values in
the following order:  1, 2, 3, 6, 5, 4.

The first spin in the order: Adam, Bill, Cody, Deb, Eve, and Faye is:
1, 2, 3, 6, 5, 4

For Eve to be in the lead after the 2nd spin, the second spin must have
been (same order as above):
4, 1, 2, 3, 6, 5
'''
from __future__ import print_function

spinnerOrder = (1, 2, 3, 6, 5, 4, 1, 2, 3, 6, 5, 4)

for i in range(6):
  for j in range(6):
    for k in range(6):
      Adam = 1 + 4 + spinnerOrder[i] + spinnerOrder[j] + spinnerOrder[k]
      Bill = 2 + 1 + spinnerOrder[i+1] + spinnerOrder[j+1] + spinnerOrder[k+1]
      Cody = 3 + 2 + spinnerOrder[i+2] + spinnerOrder[j+2] + spinnerOrder[k+2]
      Deb  = 6 + 3 + spinnerOrder[i+3] + spinnerOrder[j+3] + spinnerOrder[k+3]
      Eve  = 5 + 6 + spinnerOrder[i+4] + spinnerOrder[j+4] + spinnerOrder[k+4]
      Faye = 4 + 5 + spinnerOrder[i+5] + spinnerOrder[j+5] + spinnerOrder[k+5]

      if Bill > Adam and Bill > Cody and Bill > Deb and Bill > Eve and Bill > Faye:
        print("Scores: Adam, Bill, Cody, Deb, Eve, Faye")
        print(Adam, Bill, Cody, Deb, Eve, Faye)
        print()
        #print(i, j, k)