for(;v=readline();print(v.toFixed(6)))for(i=18;i--;)v=Math[48675>>i&1?'sin':'cos'](v)