#include <iostream>
using namespace std;
int main() {
    int count,name;
    float sum,x;
cout<<"please enter the number";
cin>>name;
for(sum=0,x=1,count=1;count<=name;count++,x*=2)
{
    sum+=1/x;
    cout<<"sum is"<<sum<<"in count "<<name<<endl;
}
    return 0;
}