#include <iostream>
#include <array>
#define MAX 10
#define DIVIDE 42
int main(void)
{
std::ios::sync_with_stdio(false);
std::cin.tie(NULL);
std::cout.tie(NULL);
std::array<int, MAX> index = { 0 };
std::array<bool, MAX> sameCheckIndex = { false };
for (size_t i = 0; i < index.size(); i++)
{
std::cin >> index[i];
index[i] %= DIVIDE;
}
int sameNumberCount = 0;
for (size_t i = 0; i < index.size(); i++)
{
for (size_t j = 0; j < index.size(); j++)
{
if (i == j || (sameCheckIndex[i] || sameCheckIndex[j]))
continue;
if (index[i] == index[j]) {
sameNumberCount++;
sameCheckIndex[i] = true;
break;
}
}
}
std::cout << MAX - sameNumberCount << "\n";
return 0;
}
3052번: 나머지 (acmicpc.net)