#include <iostream>#include<iomanip>
using namespace std;int main(){double C ;
while (cin >>C ){cout <<fixed <<setprecision(3) <<(C-32)*5/9 <<endl ;}}