def winner_check(l1, l2, l3, pl): if (l1[0] == pl and l1[1] == pl and l1[2] == pl) or \ (l2[0] == pl and l2[1] == pl and l2[2] == pl) or \ (l3[0] == pl and l3[1] == pl and l3[2] == pl) or \ (l1[0] == pl and l2[1] == pl and l3[2] == pl) or \ (l1[2] == pl and l2[1] == pl and l3[0] == pl) or \ (l1[0] == pl and l2[0] == pl and l3[0] == pl) or \ (l1[1] == pl and l2[1] == pl and l3[1] == pl) or \ (l1[2] == pl and l2[2] == pl and l3[2] == pl): return True return False p1 = 1 p2 = 2 l1 = list(map(int, input().split())) l2 = list(map(int, input().split())) l3 = list(map(int, input().split())) if winner_check(l1, l2, l3, p1): print('First player won') elif winner_check(l1, l2, l3, p2): print('Second player won') else: print('Draw!')