In reply to Satputesb:
The input should be in sequence Signal A1 , A2 , A3.
Unclear what that really mean?
input==value_A1 then value_A2 then Value_A3
or input== constant_A1 then constant_A2 then Constant_A3?
Show some code; What causes a transition?