#include<iostream> using namespace std; int main() { double target,sum; int n; while(cin>>target&&target!=0.00) { sum = 0.0f; //转为浮点数 n = 2; while(sum<target) { sum += 1.0/n; n++; } cout<<n-2<<" card(s)"<<endl; } return 0; }