You have a line of cards consisting of hearts \(\heartsuit\) on one side and spades \(\spadesuit\) on the other.

You are allowed to choose a card and flip that card and all of the cards to the right of it.

For instance, if you chose to flip the \(4\)th card, you would also flip the rightmost \(6\) cards:

\(\begin{array}{cccccccccc}
\heartsuit&\heartsuit&\spadesuit&\spadesuit&\heartsuit&\heartsuit&\spadesuit&\spadesuit&\spadesuit&\rightarrow \\
\heartsuit&\heartsuit&\spadesuit&\heartsuit&\spadesuit&\spadesuit&\heartsuit&\heartsuit&\heartsuit \\
\end{array}\)

This line of cards has \(8\,\heartsuit\)s and \(6\,\spadesuit\)s.

\(\begin{array}{ccccccccccccccc}
\heartsuit&\spadesuit&\heartsuit&\heartsuit&\spadesuit&\spadesuit&\heartsuit&\spadesuit&\spadesuit&\heartsuit&\heartsuit&\spadesuit&\heartsuit&\heartsuit \\
\end{array}\)

How many cards should you flip to get the greatest number of \(\spadesuit\)s in the line?