#include<iostream> using namespace std; int main(){ double m; double distance; int count; while(cin>>m && m != 0){ count = 1; distance = 1.0 / 2; while(distance < m){ count++; distance += 1.0 / (count + 1); } cout<<count<<" card(s)"<<endl; } }