#include <stdio.h> int main() { double k,c,f = 0; scanf("%lf",&k); c = k - 273.15; f = c * 1.8 + 32; printf("%.6lf",f); return 0; }