#include<iostream>
#include<cmath>

using namespace std;
int main()
{
  double x=1,y=1;
  int n;
  cin>>n;
  n-=2;
  for(;n--;)
    {
      double X=-y,Y=x,d=sqrt(x*x+y*y);
      x+=X/d;
      y+=Y/d;    
    }
  cout<<x<<" "<<y<<endl;
}