my@l= =<>; print @l[(@l>9??@l-10!!0)...]