#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <math.h>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
int n;
bool vis[605];
int ans;
int main() {
scanf("%d", &n);
for (int i = 1;i <= n;++i) {
int a;
scanf("%d", &a);
vis[a] = true;
}
for (int i = 1;i < 605;++i) {
if (vis[i]) {
ans++;
}
}
printf("%d\n", ans);
return 0;
}