for(v in scan("stdin",""))cat(rev(strsplit(chartr("01234578","oizehslb",v),"")[[1]])," ",sep="")