#include <iostream>
#include<cstdio>
using namespace std;

int main() {
   double k,c,f;
   cin>>k;
   c=k-273.15;
   f=c*1.8+32;
   printf("%.9f",f);
   return 0;
}
// 64 位输出请用 printf("%lld")