#P6536. Hello XTCPC

    ID: 5393 远端评测题 1000ms 64MiB 尝试: 0 已通过: 0 难度: (无) 上传者: 标签>2019CCPC湖南全国邀请赛(广东省赛、江苏省赛)重现赛

Hello XTCPC

Problem Description

You have a string of lowercase letters.You need to find as many sequence “xtCpc” as possible.But letters in the same position can only be used once。

Input

The input file contains two lines.

The first line is an integer $n$ show the length of string.($1 \leq n \leq 2 \times 10^5$)

The second line is a string of length n consisting of lowercase letters and uppercase letters.

Output

The input file contains an integer show the maximum number of different subsequences found.

10 xtCxtCpcpc
2