_==0 "exec" "gawk" "-f" "$0" function f(n, m) { return n<=m ? 1 : n%2==0 && n<=2*m ? 2 : -1 } { print f($1,$2) }