Valid Number, using multiple flags, don't use FSM