#include<stdio.h>
#define TOTAL 20000
void main()
{
int i;
float x,s;
//printf("please")
for(i=1; i<=1000; i++)
{
scanf("%f",&x);
s+=x;
//count++;
if(s>TOTAL)break;
}
printf("juan kuan ren shu:%d",i);
printf("juan kuan shu e:%.1f",s);
}