console.log((""+require("fs").readFileSync(0)).replace(/.+/g,s=>s[s[1]-s[2]?4:2]))