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