print/^[1-57]$/?-1:sprintf('%b',$_-=3)=~/1.*1/?"3 $_":'5 '.($_-2)for<>