#include <stdio.h>
int main(int argc, char* argv[]){ float len; float sum; int num=1;
scanf("%f",&len);
while(len != 0.0) { sum = 0.0; num = 1; while(sum < len) { sum += (1.0/(num+1)); //一定要是1.0!!
num++; }
printf("%d card(s)/n",num-1);
scanf("%f",&len); }
return 0;}