minimum path sum
valid number