You'll probably also want to avoid guesses like 3.141592653589793

if ($2 !isnum 0-25) return
var %guess $int($2)
write filename $int($2)

You can't just automatically take the $int() of $2 because if you're allowing zero as a guess, that's what you get from taking the int of a text word.