while""do o=""for i in io.read():reverse():gmatch"%w+"do o=">"..i.."/<"..o..">"..i.."<"end print(o:reverse())end