U560357 【LAR-1】Yet Another Mahjong Problem
题目背景
[//]: # (vjudge-owner:#991849)
Bob! Why do you always throw my Mahjong tiles away?
I'm sorry, Alice, but I didn't mean it. I... I just couldn't find them when I was playing them.
Well, let's see if you can win the game with only this many Mahjong tiles.
---
The rules of Mahjong can be read [here](https://www.luogu.me/paste/qr3nvc9x).
题目描述
Alice is angry with his younger brother Bob who always loses Mahjang tiles. She wants to teach him a lesson, so she decides to play a game with Bob.
First, Bob picks $13$ tiles. Then, Alice shows Bob the rest of the tiles one by one. If the tile is Bob's requested tile[$^?$](https://www.luogu.me/paste/qr3nvc9x), he will take it happily and win the game.
But some tiles are missing and if Bob cannot win, Alice wins. Now Alice knows the $13$ tiles in Bob's hand. She wants to know the minimum number of missing Mahjong tiles so that she can win.
输入格式
A string of $14\sim16$ characters representing the tiles in Bob's hand.
输出格式
Output the answer in one line. It can be shown that the answer always exists.
说明/提示
### Sample Explanation
For Sample#1, Bob is not Ready to Win, so no tile can make him win. The answer is $0$.
For Sample#2, Bob is Ready to Win, and his requested tile is `9b`. There are three pieces of `9b` out of his hand and all of them must be missing. Therefore, the answer is $3$.
### Constraints
Input is a combination of exactly $13$ tiles, satisfying:
- Styles will be shown in the order of M,C,B.
- Tiles of the same style will be shown in a non-decreasing order of their values.
### Scoring
You get full marks if you pass all the test cases in this problem, or you'll get no points.
Subtask#0 is the Samples while Subtask#1 is the test data.