Mealy Machine

Σ:
Λ: