#include <iostream>
using namespace std;
 class temperature {
     double celsius;
     public:
     temperature(double) {
         return (celsius*9.0 / 5.0) + 32.0;
         
     }
 };
 
 int main() {
     double c;
     cin >> c;
     
     if(c < 0) {
         cout << "Invalid input";
         return 0;
     }
     temperature t(c);
     cout << t.to farenheit();
     
     return 0;
 }