#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <vector>
#include <string>
#include <iostream>
using namespace std;
int main(){
#ifdef LOCAL
//freopen("in.txt", "r", stdin);
//freopen("out.txt", "w", stdout);
#endif
string s;
while(cin>>s){
for(int i = 0; i < s.length(); i++){
s[i] = s[i] - 7;
}
cout<<s<<endl;
}
return 0;
}
#include <cstring>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <vector>
#include <string>
#include <iostream>
using namespace std;
int main(){
#ifdef LOCAL
//freopen("in.txt", "r", stdin);
//freopen("out.txt", "w", stdout);
#endif
string s;
while(cin>>s){
for(int i = 0; i < s.length(); i++){
s[i] = s[i] - 7;
}
cout<<s<<endl;
}
return 0;
}