/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
Scanner in
= new Scanner
(System.
in);
if(s1.length()<4){
System.
out.
println("Невозможно выполнить операцию."); } else {
s2=s1.substring(0, s1.length()-1);
s2+=s1.charAt(0);
s2+=s1.charAt(1);
s2+=s1.charAt(s1.length()-1);
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVNjYW5uZXIgaW4gPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCQoJCVN0cmluZyBzMSA9IGluLm5leHRMaW5lKCk7CgkJU3RyaW5nIHMyID0gbmV3IFN0cmluZygpOwoJCQoJCWlmKHMxLmxlbmd0aCgpPDQpewoJCQlTeXN0ZW0ub3V0LnByaW50bG4oItCd0LXQstC+0LfQvNC+0LbQvdC+INCy0YvQv9C+0LvQvdC40YLRjCDQvtC/0LXRgNCw0YbQuNGOLiIpOwoJCX0gZWxzZSB7CgkJCXMyPXMxLnN1YnN0cmluZygwLCBzMS5sZW5ndGgoKS0xKTsKCQkJczIrPXMxLmNoYXJBdCgwKTsKCQkJczIrPXMxLmNoYXJBdCgxKTsKCQkJczIrPXMxLmNoYXJBdChzMS5sZW5ndGgoKS0xKTsKCQl9CgkJU3lzdGVtLm91dC5wcmludGxuKHMyKTsKCX0KfQ==