using namespace std;
int main(){
int n; cin>>n; cout<<showpoint<<setprecision(6)<<sin(n*3.1415926/180)<<endl<<cos(n*3.1415926/180); return 0;
}