#include <stdio.h>
int main()
{
int n;
float sum=0,c;
scanf("%f",&c);
while(c!=0.00)
{
for(n=1;sum<=c;n++)
{
sum=sum+1.0/(n+1);
}
printf("%d card(s)\n",n-1);
sum=0;
scanf("%f",&c);
}
return 0;
}
#include <stdio.h>
int main()
{
int n;
float sum=0,c;
scanf("%f",&c);
while(c!=0.00)
{
for(n=1;sum<=c;n++)
{
sum=sum+1.0/(n+1);
}
printf("%d card(s)\n",n-1);
sum=0;
scanf("%f",&c);
}
return 0;
}