Create Rail_stack_6.1.2.c

input0:
5 
1 2 3 4 5
output0:
Yes
input1:
5 
5 4 1 2 3 
output1:
No
input2:
6 
6 5 4 3 2 1
output2:
Yes