A 0
B 0
wait 50
A 1
wait 10
B 1
wait 40
A 0
wait 50
A 1
wait 10
B 0
wait 40
A 0
wait 100
