题目链接:http://poj.org/problem?id=1003
//C++代码
#include<iostream>
using namespace std;
int main(){
double a;
while(cin>>a,a){
double sum=0;
int i;
for(i=2;;i++){
sum+=1.0/i;
if(sum>=a) break;
}
cout<<i-1<<" card(s)"<<endl;
}
return 0;
}