1 2 3 4 5 6
5 d is not ahead of i w is in front of g g is not ahead of w i is in front of d d is in front of g