Start with the sequence of coins as follows (where you can think of O as TAILS and X as HEADS; there are 14 tails and 15 heads)
XOXOXOXOXOXOXOXOXOXOXOXOXOXOX
Transform it to
XXXXXXXXXXXXXXXOOOOOOOOOOOOOO
using moves of the following sort:
Take two consecutive coins and move them to the end, or the beginning.