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