/*
#include <stdio.h>
#include<string.h>
char a[200]="",b[200]="";
int stack[1000]= {};
int top=-1;
void push(int sum)
{
top++;
stack[top]=sum;
}
int pop()
{
if(top!=-1)
{
return stack[top--];
}
}
int main()
{
int i, j, num=0, p=0, topa, topb, numa=0, numb=0;
scanf("%s", a);
scanf("%s", b);
topa=strlen(a)-1;
topb=strlen(b)-1;
while(1)
{
if(topa==-1&& topb==-1&& p==0)
{
break;
}
// numa, numb 충전하기
numa=0;
numb=0;
if (topa>-1)
{
numa = a[topa--]-'0';
}
if (topb>-1)
{
numb = b[topb--]-'0';
}
//계산결과 넣기
num=numa+numb+p;
push(num%10);
// printf("%d",num%10);
p=(num/10);
}
while(top!=-1)
{
printf("%d",pop());
}
return 0;
}
for(i=0;i=strlen(str);i++)
{
for(j=strlen(str)-1; j>=0; j--)
{
str[j]=str[j]-48;
if(str[j]==0)
{
str[j]+=48;
}
}
for(j=strlen(srt)-1; j>=0; j--)
{
str[j]=str[j]-48;
if(srt[j]==0)
{
srt[j]+=48;
}
}
sum=(str[j]+srt[j])%10;
push(sum+p);
p=(str[j]+srt[j])/10;
}
printf("%d", pop());
*/
#include<stdio.h>
int main()
{
int n, i, sum;
scanf("%d", &n);
for(i=0;i<n;i++)
{
scanf("%d", &n[i]);
}
if(n[i]==1)
{
sum+=1;
if()
}
}