#include <stdio.h>
int main ()
{
float n,max;
int i,k;
max=0.0;
k=0;
for(i=1;i<=1000;i++)
{
printf("please input the weight of Sheep No.%d\n",i);
scanf("%f",&n);
if(max<n)
{
max=n;
k=i;
}
}
printf("the heaviest sheep is Sheep No.%d,and its weight is%.2f\n",k,max);
return 0;
}