Speed Run #1

#### Start

2020-07-19 20:00 AKDT

## Speed Run #1

#### End

2020-07-20 01:00 AKDT
The end is near!
Contest is over.
Not yet started.
Contest is starting in -64 days 3:00:28

5:00:00

0:00:00

# Problem HPoker Hand

You are given a five-card hand drawn from a standard $52$-card deck. The strength of your hand is the maximum value $k$ such that there are $k$ cards in your hand that have the same rank.

Compute the strength of your hand.

## Input

The input will consist of a single line, with five two-character strings separated by spaces.

The first character in each string will be the rank of the card, and will be one of A23456789TJQK. The second character in the string will be the suit of the card, and will be one of CDHS.

You may assume all the strings are distinct.

## Output

Output, on a single line, the strength of your hand.

Sample Input 1 Sample Output 1
AC AD AH AS KD

4

Sample Input 2 Sample Output 2
2C 4D 4H 2D 2H

3

Sample Input 3 Sample Output 3
AH 2H 3H 4H 5H

1