binmode STDIN,':utf8'; binmode STDOUT,':utf8'; print join("", reverse split//,<>),$/;