A state machine consists of a finite number of states and is therefore also called finite-state machine
Question:
A state machine consists of a finite number of states and is therefore also called finite-state machine (FSM). Based on the current state and a given input or conditions the machine performs state transitions and produces outputs.
For instance, we defines several states to indicate process state in operating system.
Now, I give you a state machine as below. In each testcase, I will give some numbers indicated state transition conditions as input and your initical state is at "Start". Please implement a program output which state is your final state.
Input:
First line contains one integer , indicated how many transition numbers.
Second line contains integers and seperated by space, indicated transition number .
Ensure series follows state machine rule.
Output:
Please output the last state after transition numbers.
Sample input:
5
34 92 8 8 10000
Sample output:
You are in Final.