--$n&$n-1&&$_&$_-1&&exit!print"$_ $n"for 1..($n=<>);print-1