#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
auto f=[](char &x){x=(x+1)%255;};
auto g=[](char &x){--x;x%=255;};
std::string s;
std::getline(std::cin,s);
std::cout<<s<<std::endl;
std::for_each(std::begin(s),std::end(s),f);
std::cout<<s<<std::endl;
std::for_each(std::begin(s),std::end(s),g);
std::cout<<s<<std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkKCWF1dG8gZj1bXShjaGFyICZ4KXt4PSh4KzEpJTI1NTt9OwoJYXV0byBnPVtdKGNoYXIgJngpey0teDt4JT0yNTU7fTsKCXN0ZDo6c3RyaW5nIHM7CglzdGQ6OmdldGxpbmUoc3RkOjpjaW4scyk7CgkKCXN0ZDo6Y291dDw8czw8c3RkOjplbmRsOwoJc3RkOjpmb3JfZWFjaChzdGQ6OmJlZ2luKHMpLHN0ZDo6ZW5kKHMpLGYpOwoJc3RkOjpjb3V0PDxzPDxzdGQ6OmVuZGw7CgkKCXN0ZDo6Zm9yX2VhY2goc3RkOjpiZWdpbihzKSxzdGQ6OmVuZChzKSxnKTsKCXN0ZDo6Y291dDw8czw8c3RkOjplbmRsOwoJcmV0dXJuIDA7Cn0=