#include <iostream>
#include <set>
using namespace std;
int main() {
int numbers[] = { 2, 6, 7, 4, 5, 4, 1, 8, 9, 0, 7, 4 };
cout << (sizeof(numbers) / sizeof(numbers[0]) - set<int>(cbegin(numbers), cend(numbers)).size()) << endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c2V0Pgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgbnVtYmVyc1tdID0geyAyLCA2LCA3LCA0LCA1LCA0LCAxLCA4LCA5LCAwLCA3LCA0IH07CiAgICAKICAgIGNvdXQgPDwgKHNpemVvZihudW1iZXJzKSAvIHNpemVvZihudW1iZXJzWzBdKSAtIHNldDxpbnQ+KGNiZWdpbihudW1iZXJzKSwgY2VuZChudW1iZXJzKSkuc2l6ZSgpKSA8PCBlbmRsOwp9