#include <iostream>
#include <string>
using namespace std;
int main()
{
string x;
getline(cin, x);
for (int i = 0; i < x.length(); i++)
char n = x[i];
n = n - 7;
cout << n;
}