#include<bits/stdc++.h> using namespace std; int main() { double a; cin>>a; cout<<a*1.8+32; return 0; }