#include <iostream>
using namespace std;

int main() {
  float k;cin>>k;
  cout<<(k-273.15)*1.8+32<<endl;
}