gameloop
read foundationCountPlusOne:int
read cascade1CountPlusOne:int cascade2CountPlusOne:int cascade3CountPlusOne:int cascade4CountPlusOne:int cascade5CountPlusOne:int cascade6CountPlusOne:int cascade7CountPlusOne:int cascade8CountPlusOne:int
loopline foundationCountPlusOne f:word(12)
read cHeader:word(10) ca:word(2) cb:word(2) cc:word(2) cd:word(2)
loopline cascade1CountPlusOne cascade1:word(2)
loopline cascade2CountPlusOne cascade2:word(2)
loopline cascade3CountPlusOne cascade3:word(2)
loopline cascade4CountPlusOne cascade4:word(2)
loopline cascade5CountPlusOne cascade5:word(2)
loopline cascade6CountPlusOne cascade6:word(2)
loopline cascade7CountPlusOne cascade7:word(2)
loopline cascade8CountPlusOne cascade8:word(2)
read moveCount:int
loopline moveCount moves:word(2)
write 26 76 72 72 5a 27 57 67 1b 61 41 4h 4h 41 45 34 3c 6d 5b

INPUT
fc: number of foundations with cards
c1: number of cards in cascade 1
c2: number of cards in cascade 2
c3: number of cards in cascade 3
c4: number of cards in cascade 4
c5: number of cards in cascade 5
c6: number of cards in cascade 6
c7: number of cards in cascade 7
c8: number of cards in cascade 8
f: suit, dash, rank of highest card in foundation; the first item is just the string "Foundations:"
cHeader: the string "Freecells:"
ca: card in cell a
cb: card in cell b
cc: card in cell c
cd: card in cell d
cascade1: a card in cascade 1; the first item is just a colon ":"
cascade2: a card in cascade 2; the first item is just a colon ":"
cascade3: a card in cascade 3; the first item is just a colon ":"
cascade4: a card in cascade 4; the first item is just a colon ":"
cascade5: a card in cascade 5; the first item is just a colon ":"
cascade6: a card in cascade 6; the first item is just a colon ":"
cascade7: a card in cascade 7; the first item is just a colon ":"
cascade8: a card in cascade 8; the first item is just a colon ":"
moveCount: number of possible moves
move: a possible move

OUTPUT
Write one or more moves in standard notation, in a singe line.