// Solution of 1789 The Race of Slugs
// (Mahmud_Jamil) BRUR
#include <stdio.h>
int main()
{
int a,b,c,d,e,f,max=0;
while(scanf("%d",&a)!=EOF)
{
for(b=1,max=0; b<=a; b++)
{
scanf("%d", &c);
if(c>max)
max=c;
}
if(max<10)
printf("1\n");
else if(max<20)
printf("2\n");
else
printf("3\n");
}
return 0;
}