/*
#include <stdio.h>
int main()
{
int arr1[1000] = {};
int arr2[1000] = {};
int i,j,n,m,a;
scanf("%d %d",&n,&m);
for(i=1; i<=n; i++)
{
scanf("%d",&arr1[i]);
}
for(i=1; i<=m; i++)
{
scanf("%d",&arr2[i]);
}
for(i=1,j=1; ; )
{
if(arr1[i]==0){
arr1[i]=10000000;
}
if(arr2[j]==0){
arr2[j]=1000;
}
if(arr1[i]<=arr2[j])
{
printf("%d ",arr1[i]);
i++;
}
else
{
printf("%d ",arr2[j]);
j++;
}
if(i>=n+1&&j>=m+1)
{
break;
}
}
return 0;
}
#include <stdio.h>
int main()
{
int i,n,r=0,d=10,m=1000000,sum=0;
scanf("%d",&n);
for(i=1; ;i++){
r=r*10;
r=r+(n%d);
sum=sum+n%d;
n=n/10;
if(n==0){
break;
}
}
printf("%d\n",r);
printf("%d",sum);
return 0;
}
*/
#include <stdio.h>
int main()
{
int i,n;
int arr[101]=0;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&arr[i]);
}
for(i=1;i<=n;i++){
if(arr[i-1]>=1){
arr[i]=arr[i-1]+1;
}
}
for(i=1;i<=n;i++){
}
}