for(a in scan("stdin","",,,";"))write(intToUtf8((a=utf8ToInt(a))[a[a<58]-47]),1)