Masala #HCGQJUHFJO

Xotira 16 MB Vaqt 1000 ms
14

TicTacToe#Easy

Bolalar Tic Tac Toe o'ynini o'ynamoqdalar,ular sizga hozir yozgan 3x3 Tic Tac Toe chizmasini beradilar va siz,keyin kim yurish qilib yutishini chop eting.


Kiruvchi ma'lumotlar:

Sizga Tic Tac Toe chizmasi beriladi,chizmada faqat O,X va nuqtadan tashkil topgan.U chizma 3x3 razmerda beriladi.Agar ular bitta yurishda yuta olmasalar Draw! deb chop eting.Agar O yutsa O yutadi deb chop eting,agar X yutsa X yutadi deb chop eting.


Chiquvchi ma'lumotlar:

Masalani javobini chop eting.


Misollar
# input.txt output.txt
1
O . .
O . .
. . .
O yutadi