// Arup Guha
// 7/15/2026
// Solution to UCF 1995 HS Contest Problem: So Who Won?

import java.util.*;

public class othello {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);
		int white = 0, black = 0;
		
		// Read board and count.
		for (int i=0; i<8; i++) {
		
			char[] row = stdin.next().toCharArray();
			for (int j=0; j<row.length; j++) {
				if (row[j] == 'B') black++;
				if (row[j] == 'W') white++;
			}
		}
		
		// Output according to the piece counts.
		if (black > white)
			System.out.println("Black wins.");
		else if (white > black)
			System.out.println("White wins.");
		else
			System.out.println("Tie game.");
		
	}
}