Given a string $$$S$$$ composed of uppercase letters, please rearrange the order of the characters in $$$S$$$ such that the substring CCPC appears as many times as possible as a contiguous substring. You are to determine the maximum possible number of occurrences of CCPC.
A single line containing a string $$$S$$$ composed of uppercase letters $$$(1 \leq |S| \leq 10^6)$$$.
Output a single integer, representing the maximum possible number of occurrences of CCPC.
ABCDCPCPC
1
| Name |
|---|


