#include<iostream>
using namespace std;
int main(){
    double s=0;
    double p=1;
    int n;
       cin>>n;
 for(int i=1 ; i<=n ; i++){
    for(int j=1 ; j<=i; j++){
       p=p*(1/i);
  }
    s=s+p;
    p=1;
}
  cout<<s;
  return 0;
}
I should count the sum of: (1/1)^1 + (1/2)^2 +...+(1/n)^n . But maybe my logic is wrong because the program returns number 1.
 
     
    