#include <iostream>
using namespace std;
int f(int n); int main()
{
int n;
cin>>n;
double number = 1.0 * f(n);
cout<<number<<endl;
cout<< number / <<endl;
double leftNum = number / - (int)number / ;
cout<<leftNum; return ;
} int f(int n)
{
if(n == || n == )
return ();
else
{
return f(n - ) + f(n - );
}
}