#include using namespace std; int n, a, g[102], i, k; int main() { cin >> n; for( i = 1; i <= n; i++ ) { cin >> a; g[a % 23]++; } for( i = 0; i <= 23; i++ ) if(g[i] != 0) k++; cout << k; return 0; }