Problem U
Coloring Socks

Having discolored his white socks in a rather beige shade (as seen on the picture), Luktas Svettocek realised he can’t just throw all his laundry into one machine and expect it to retain its original colors. However, he is also too lazy to do his laundry in several rounds. He would much rather buy more laundry machines!
Each of Luktas’ socks have a color
Luktas now needs to know how many washing machines he needs
to wash his
Input
The first line consists of three integers
Output
Output a single integer; the number of machines Luktas needs to wash all his socks.
Sample Input 1 | Sample Output 1 |
---|---|
5 3 0 0 0 1 1 2 |
3 |
Sample Input 2 | Sample Output 2 |
---|---|
5 3 1 0 0 1 1 2 |
2 |