//AC
#include <iostream>
#include <cstdlib>
#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <string.h>
#include <queue>
#include <stack>
#include <vector>
#include <map>
#include <set>
typedef long long ll;
using namespace std;
int main(){
double F;
int C;
cin>>F;
C = 5*(F-32)/9;
printf("Celsius = %d\n",C);
return 0;
}