#include <stdio.h>

int main()
{
double c, k,f;
scanf("%lf",&k);
c=k-273.15;
 f=c*1.8+32;
 printf("%lf",f);
 return 0;
}