fork download
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4.  
  5. int main(){
  6. int n;
  7.  
  8. char input[4][4];
  9. cin >> n;
  10. int t=1;
  11. start :
  12. while(t<=n){
  13. int empty = 0;
  14. for(int i=0;i<4;i++){
  15. for(int j=0;j<4;j++){
  16. cin >> input[i][j];
  17. }
  18. }
  19. int *dg= (int*)calloc(4,sizeof(int));
  20. int *gd= (int*)calloc(4,sizeof(int));
  21. for(int i=0;i<4;i++){
  22. int *row= (int*)calloc(4,sizeof(int));
  23. int *col= (int*)calloc(4,sizeof(int));
  24.  
  25. for(int j=0;j<4;j++){
  26. if(input[i][j] == 'X'){
  27. row[0] += 1;
  28. }else if(input[i][j] == 'T'){
  29. row[1] += 1;
  30. }else if(input[i][j] == 'O'){
  31. row[2] += 1;
  32. }else{
  33. empty = 1;
  34. row[3] += 1;
  35. }
  36. if(input[j][i] == 'X'){
  37. col[0] += 1;
  38. }else if(input[j][i] == 'T'){
  39. col[1] += 1;
  40. }else if(input[j][i] == 'O'){
  41. col[2] += 1;
  42. }else{
  43. empty = 1;
  44. col[3] += 1;
  45. }
  46. if( i== j){
  47. if(input[j][i] == 'X'){
  48. dg[0] += 1;
  49. }else if(input[j][i] == 'T'){
  50. dg[1] += 1;
  51. }else if(input[j][i] == 'O'){
  52. dg[2] += 1;
  53. }else{
  54. empty = 1;
  55. dg[3] += 1;
  56. }
  57. }
  58. if( j == (3-i)){
  59. if(input[i][j] == 'X'){
  60. gd[0] += 1;
  61. }else if(input[i][j] == 'T'){
  62. gd[1] += 1;
  63. }else if(input[i][j] == 'O'){
  64. gd[2] += 1;
  65. }else{
  66. empty = 1;
  67. gd[3] += 1;
  68. }
  69. }
  70. }
  71. if( (gd[0] + gd[1] == 4)||(dg[0] + dg[1] == 4)||(col[0] + col[1] == 4)||(row[0] + row[1] == 4) ){
  72. cout << "Case #"<<t++<<": X won\n";
  73. goto start;
  74. }else if( (gd[1] + gd[2] == 4)|| (dg[1] + dg[2] == 4)|| (col[1] + col[2] == 4)|| (row[1] + row[2] == 4)){
  75. cout << "Case #"<<t++<<": O won\n";
  76. goto start;
  77. }
  78. }
  79. if(empty == 0){
  80. cout << "Case #"<<t++<< ": Draw\n";
  81. goto start;
  82. }else{
  83. cout << "Case #" << t++ << ": Game has not completed\n";
  84. goto start;
  85. }
  86. }
  87. // system("pause");
  88. return 0;
  89. }
  90.  
  91.  
  92.  
  93.  
Success #stdin #stdout 0.01s 5260KB
stdin
1000
XXXT
....
OO..
....

XOXT
XXOO
OXOX
XXOO

XOX.
OX..
....
....

OOXX
OXXX
OX.T
O..O

XXXO
..O.
.O..
T...

XXXO
..OX
.O..
O...

X.OX
XOOX
XOXX
OXOO

X..O
XXO.
.O..
O.X.

XOXX
.O.O
.O.O
XOXX

XOOX
XOOO
XXOO
OXXX

XXOO
OOOX
XOXO
OXXX

OXOX
XXOO
OX.O
OXXX

OOOT
.XXX
.X..
...O

O..X
..X.
.X.O
X..O

XXX.
OXXO
OOOX
OXOT

OXOO
OOXX
XXXO
OXXO

....
XXXX
..OO
..O.

XO..
O...
.OX.
...X

XTOX
XOOX
OOXX
OXOX

OXOX
XOOO
XXOX
XOXO

.X.X
XOX.
OTXX
OOOO

OXXX
OOXX
.OOX
OOXX

O..X
.X.O
.X..
.OT.

OX..
.T..
..OX
.X.O

TXXX
X.XO
OOXO
OOX.

OO.X
.OXO
.OTX
XXXO

XOOX
XTO.
XOXO
OX.X

.X..
XOXO
X.O.
....

XOXX
OXOO
TXOX
OXOX

OO.X
OOOX
..OX
XXXX

OO..
.OO.
...X
XXXX

OOX.
X.XX
O.TO
OXX.

OOXX
OOX.
OXXO
X.X.

TOXX
XXOO
XOXO
OXOX

XOO.
OX..
OOXO
XXXX

X..X
OOOO
X..X
XOOX

OTXX
XOXO
XOXX
OXOO

X.XX
..OO
..XO
.OOX

O.XX
XT..
..O.
...O

X..T
.XOX
.OX.
OO..

XXTX
OXOO
..XO
.O.X

XO..
.OOX
.T.X
XO..

X..X
OOOO
X..X
XOOX

OO.X
..X.
.X..
X.O.

XOOO
OXOO
XXOX
XOXX

X.OO
.X..
..X.
..OX

.OXX
.O.X
XTXO
.OO.

.XOX
TXXX
OOO.
.O.X

O.XO
XOXX
X.OO
...T

...X
.OXO
...O
...X

O..X
.OT.
.XOX
X...

X.XX
O.XT
OOXO
XOOX

....
....
.X.X
.O.O

XXOT
XOXX
OXOX
XOOO

X.TX
OOX.
OOOO
.XXX

XXO.
OOOO
XXOX
X...

XOX.
XX..
..O.
.O.T

XXOO
XXOX
.T..
OOOX

OXOO
OXXT
XXXX
OXOO

....
....
XT..
.X.O

....
...O
....
...X

X...
OX.O
..XO
...X

OTXO
XXXX
OOXO
XOOX

.X..
T...
....
....

O.X.
XTO.
O.OX
XO.X

XXOO
XOXX
OXOO
XXOO

XOOO
XXXO
OOXO
XTXX

.OOX
XXXX
O..X
OOOX

...O
..X.
X.XO
X.O.

XXOX
.OOX
XXOO
OXOT

X...
XOOO
TXX.
XXOO

.XO.
.X.O
TXXX
OXOO

.O.T
O.XX
XXXO
XOO.

.XO.
..OO
.T.O
XXXX

..O.
...X
.X..
....

OXXX
TXOO
XOXO
XXOO

OOOX
XXXX
.X..
XOOO

OOOX
XXXX
.XO.
X.OO

O..O
XXXX
O...
O.X.

OTOO
XOX.
XX.X
XO.O

.O..
O.XO
XXXX
..O.

O.OX
XXXX
OXOO
XO..

XTOX
OOXX
OXXX
OOOX

XXXX
X.O.
XO.O
XOOO

OXXO
XXOX
X.OX
.OOO

TXX.
.O.X
..O.
...O

X.X.
XO.X
XOOO
TXO.

OXX.
XOO.
.XOX
...O

TOO.
.X..
X...
X.O.

X...
..O.
O..X
T.OX

XTXX
OOXO
.XO.
XO..

X.O.
X.OO
XTXX
XOO.

.X..
XOOT
XOXO
OXX.

XXX.
OOOX
X.O.
XTO.

.X.O
..OO
XO.X
TX..

OT..
..XX
O...
OXXO

XXXO
X.O.
XOO.
O.XO

X...
..O.
OO.X
.X..

OXOO
XOXX
XXO.
XOOT

OXOX
OOXX
XXXO
XO.O

XO.O
XXXX
XO.O
X.OO

T..O
XX.O
O.XX
OXOX

.OOX
XXXX
OO.X
O.OX

O.XO
O..O
XXXX
.XO.

OX.X
.O.X
XT.O
....

XXOO
XXXX
XOTO
XOOO

O..X
.OXX
O..X
..OX

XOOX
XOXX
OOXX
OXOO

OOX.
OXO.
XX.O
XX.T

OOTX
XOXX
XXXO
OXOO

OXXX
OOXX
O.OO
X.XO

OX..
XXTX
OX.O
.XOO

..X.
...X
.OXO
T...

XXOX
OOOX
XTXO
OXXO

XXOX
OXOO
XXOO
XOXO

XOXO
OOXX
OXOX
XOXO

XXOO
OXT.
XX.X
OXOO

..O.
....
..X.
...X

XXXX
....
O.TO
O.XO

....
..X.
....
...T

..XO
XOXX
.XXO
OTOO

.O..
XXT.
....
....

XOXX
.O.O
.O.O
XOXX

TXX.
O..O
OXOX
X...

O..X
TXXX
OOOX
..OX

X.XX
TOO.
OXOX
XOXO

....
.X.T
....
....

.O..
OXXX
XXOO
T.OX

OOOX
XXXO
OXX.
XXOO

OOOX
.O.X
X..X
..XT

XOX.
XXXO
OOXO
OOXX

..OX
.OXO
OXOO
XXXX

T.XO
.OOO
.OX.
XXXX

....
T...
.O..
.X..

XOOX
OXXX
OOXX
XOOO

.O.X
OXO.
T.XX
O..X

XOXO
XOXX
XXOO
OXOO

XXTX
.XO.
O.XO
...O

.XO.
O...
O.XO
XXTX

OXOO
OXXX
XOTX
OXOX

XXX.
XOOO
XOOO
XX..

..O.
XXXX
..XO
OXOO

OXXX
XOOO
OXXO
.XXO

OXXX
O..X
X.O.
.OOX

X...
.X.X
OOOO
X...

OOXX
O..X
T.OX
OXXO

XXOX
XXXO
OOXX
OOOO

OOXX
TXXO
OO.O
XOXX

XXX.
XXOO
OX.X
OOOO

....
XO..
....
.X..

.OX.
TXXX
O..O
O..X

OXXX
XOXO
OOOO
XXOX

XTXX
.X.O
.OXO
OO.X

XOXX
OOXX
XXXO
OOOO

XXXO
OXXO
OTOX
XOXO

.T..
X.O.
O..X
.XOX

TOX.
X.OX
OOOO
XXX.

X..X
OOOO
X..X
XOOX

OOXX
OXTX
OXOX
XXOO

OXOX
OXOO
XOXX
OXX.

O..X
.OX.
X.O.
...T

OO..
OO.X
.O.X
XX.X

.X..
..O.
....
X...

XXOO
XXOX
OOOX
OXXO

O...
....
X..O
.TX.

O...
X.X.
.T..
..O.

XXXX
X.O.
XOOO
X.OO

O.O.
.OXO
X.XX
XXO.

XOXX
OXOO
OXXO
XOXO

O..X
O..X
.OXX
OXOX

XOXX
XOOX
O.XX
TOOO

..O.
..OX
O.O.
XXXX

..OX
.TO.
XXOX
X.OO

X...
OOTO
X.X.
....

OXX.
XXOO
XOXO
OOTX

.OXX
.OX.
.OOX
XOT.

OO.X
TXXX
.XO.
XOO.

OO.X
XOXO
OXXO
OXXX

XOOX
XXOO
OXXO
XOXO

OOXX
OXXO
XXXO
OOOX

X..O
.O..
XXXX
O.OT

XOX.
.O..
.T.X
.O..

XXOO
XOOX
OOXX
XXOO

X..O
X.O.
.OX.
O..X

XOOO
TX.X
OO.X
XOX.

XOOO
OXOO
OXXX
XTXX

OOXX
XXOO
OXOT
XXXO

X.XO
OOOT
X.XO
.XOX

XXOO
OOOX
TXXX
OXOX

XXTX
OXO.
OXO.
OX..

TOXO
XXXO
XOXO
OXOX

XXX.
OXO.
OOX.
X..O

.OO.
X.O.
XOOX
XXOX

..XT
X..O
.XOO
.X.O

OOOT
X...
X...
X...

XXXO
XOO.
.OX.
O...

X..X
.XOX
OOXT
OO.X

..OX
O..X
.OXX
.O.X

XOXX
XOXX
OOOO
OXOX

.OOO
XXOX
OTXX
OOXX

X...
..X.
O...
....

O.XO
O.X.
OTX.
OX.X

OXO.
OX..
O.XO
XTXX

X.OX
..O.
X.O.
..OX

....
....
...O
X...

.X..
....
....
.O.T

X..O
..O.
XT.X
O...

..O.
.O.O
....
XXXX

OXXX
XOXX
OOOO
XOOX

.O..
X..O
X.X.
X.O.

XO.X
OOXX
OXOO
XXOX

XOOT
OXXX
XXXO
OXOO

OXOO
XOX.
OO.T
XXXX

XO..
X..X
..O.
OXXO

OXOX
XOOO
OOXX
XXOX

....
...T
O.X.
....

.XX.
O.O.
O.O.
XXXT

.OOX
XXOO
.XXO
OX.X

XO.O
.X..
..X.
...T

X.O.
.XO.
..XX
.OOX

OXOX
OO.X
XXXX
XOOO

.XOO
XXXX
OXO.
OX.O

XO.O
OXX.
.T..
X...

.OXO
OOX.
XTXX
..XO

XOXO
OXOX
OXXO
OXXO

O.X.
XXXX
...O
O..O

XOXX
.O.O
.O.O
XOXX

.O.X
OOX.
OX..
XX..

XOXO
XXOO
OOXO
X.XX

X...
...T
....
....

OOXO
.OXO
XOXX
XXT.

.OXT
OXOX
XOXX
OXOO

XOOO
XXOO
OXXO
XXXO

X.O.
.XOO
.OXO
XX.X

XXOO
TOX.
OXX.
O.X.

OOOX
X.TX
X.XX
OOOX

OOXO
OXOX
OXXX
T.OX

XXTO
XXOX
OXXO
OXOO

O..X
O..X
...X
...T

O.XO
XT..
O.XX
...O

OXXX
XTOX
OOOO
X.XO

....
.T.X
....
..O.

XOXX
XOXO
OOXX
OXOO

XXOO
XXOX
XOOX
OXOO

.X..
OOOO
.X.X
..X.

.XOO
.XX.
TX.O
OXOX

O..X
..TO
.XO.
XXXO

..O.
.T..
X...
X...

.O.X
..XX
OX.O
X.O.

XXOO
OXXO
.XXO
OXOX

OXX.
O..O
.T.X
.XO.

X.OO
XXXO
XOOX
XOOX

....
....
.X..
....

O.OX
XOOX
XOX.
XTOX

O..X
O.OO
X..T
.XXX

XO..
O.TO
.OXX
X...

XXOX
X.XO
O.XO
OOOX

XXOO
OTXO
XXXO
OOXX

OOOO
TXOX
.OXX
.XX.

OOOT
X...
X...
X...

X...
...O
X...
..XO

XXX.
XOOO
XOOO
XX..

.XOO
OX..
.XOO
XXTX

....
XOX.
XX..
TOOO

OX..
.X..
.XXO
.T.O

OXXO
XOXX
OXOO
XOXO

OXOO
XXOX
XOOX
OXOX

XOXX
XXOX
OOOO
XXOO

TXOO
.XOX
.OXX
.OX.

XOO.
OX.O
.OXO
XXXX

X.OO
.XOX
.XOX
X.OO

OOTX
OXOO
XXXX
XOXO

OXXO
TOOO
OXXX
X.OX

O.XO
.X..
....
....

XOXO
XXO.
OOOX
TXXO

XOOX
O..X
.O..
TXX.

XO..
.X..
..T.
....

X...
.T..
..XO
.O.X

X...
OX.O
O.X.
...X

OOOO
O.XX
XXOX
X.XO

XXOO
XXOX
OXOX
OOXT

XO.O
OXOO
..XO
XXXX

O.X.
.O.X
.XO.
.X.O

XXTX
..X.
OXOX
OOO.

O.X.
TXXO
OX..
OOX.

OXOO
.TXX
.OXO
X...

OOXO
O.XO
..XO
XXXX

XO.X
OXOX
OOXX
..OX

O.XX
...X
.TO.
...O

OXX.
.O.O
..T.
X.XO

XOOX
XXXO
XOOO
OOXX

..X.
X.OX
.OO.
...X

XXOX
OXOO
XOXX
OXOO

OXXX
O...
O...
T...

OXXO
XXXO
OOOO
XXXO

.OOX
XXXX
.O.X
OOOX

OXOX
OOOO
XXXO
XXOX

..XO
XOXO
..X.
.TXO

OO..
.OT.
XXXX
XO..

O..T
.XXO
OX.O
X.X.

.O.X
..XX
OXO.
X.O.

OX..
OXOO
.X.X
X.TO

TXOX
OX..
..XO
OOXX

XOOX
OXOX
OXXX
OOXO

XXXX
XOOX
XOO.
.OO.

XOXO
XXTX
OXXO
OXOO

X.XO
X..O
...O
...T

.XXO
..O.
XOX.
O...

X..X
.TX.
XOO.
.XOO

...X
O.XO
XXTX
XOOO

...O
.X..
..T.
....

XXTX
OX..
OOXO
.O.X

XOXO
OXXO
..X.
O.TX

O...
XTXX
.XO.
O...

O..X
...X
O..T
...X

X.O.
TXOO
X.XO
X.OX

XO.X
XXO.
OOXX
O.OX

XXTX
X..O
OO.X
OXO.

XOXX
.O.O
.O.O
XOXX

O.XX
OOX.
OXO.
.X..

XXX.
....
.XT.
OOOO

OOXO
XXXT
OXOO
XOXX

..X.
.OT.
X...
O...

XXXX
O.XO
X..O
OXOO

XOOO
.XO.
O.XO
XXXX

OXXX
TO.O
OXXO
O..X

.O..
....
XX..
X.O.

XXTX
XO.O
O.X.
.OOX

....
.XT.
...X
.OXO

OXXX
O...
O...
T...

.XXO
OOXO
.OXX
O..X

XTOO
XXO.
XO..
XX.O

OOOO
OXOX
XXOX
XXOX

.X.O
.XO.
OO.X
OX.X

XXXT
XOOX
O.OX
OOX.

XXO.
..OX
.XOO
..OX

OO.X
XXXX
.OOX
.OOX

XTXX
XXOO
O.X.
OOXO

OOXX
OXOO
XXOX
OXXO

.O.O
...X
..O.
..XX

..OT
..OO
XXXX
XO..

O.OO
OXTX
OOXX
OXXX

OXXO
XXOO
OOXX
OOXX

.OOX
OOX.
XXXX
XO.O

XOT.
O...
OX..
XOX.

OOXX
OTOO
X.XX
XOOX

OOOO
XX.X
.OXX
XXOO

XXOO
XTOX
O.XX
OOXO

XO.O
XX.O
X.OX
XTO.

OO.O
XXO.
XXOX
X..O

X...
XO.O
X.XO
X.O.

....
T...
XXXX
O.OO

...X
.XOO
OOOX
XTXX

.X.O
..OX
..X.
..O.

XOO.
.XO.
XTXX
O.OX

..O.
.O..
....
.X.X

OOX.
OOXO
XXXT
..X.

X.XO
.OX.
XXX.
OOOO

OOXX
XXXX
OX.O
XOOO

XOOX
OX..
.XX.
OO.X

X.XX
.OXO
OT..
XOOX

XO.X
OOOX
.XOX
.OXX

TOO.
.X..
O.XX
.XOX

OO.O
TOX.
.X.O
X.XX

.TXX
XOXO
OX..
XOO.

OOOO
XXX.
O..X
O.XX

X..T
X.OX
OOXO
O.X.

X..O
XXOO
OOX.
XOXX

..XX
X..X
OOOO
..T.

OXXO
O..O
OTXO
XXXX

OXXO
XXOO
XOXX
OXOO

T...
...X
O...
....

OOOX
OOXO
XOXX
XOXX

X...
OTO.
.OXX
...X

TOXX
XOXX
XOOO
O.XO

OXOO
OO.X
XXOX
.X.T

O..X
OOOX
..OX
TXXX

XOO.
OXX.
X.XO
OXOX

OXXO
O..O
OTXO
XXXX

T.XX
XOOO
XXOX
.O.O

OXXX
XXOX
OOOX
XOOO

OXX.
OOXX
..O.
.XOT

X...
OTOX
X.X.
.XOO

...X
O.T.
OX..
X...

OOOX
O..X
XXTX
..OX

.OOX
X.OX
OXXO
XOOX

XXOX
OOXX
OXOO
XXOT

O.O.
XXOO
.XXO
..X.

OXO.
XOXX
OXOX
..OT

OOOO
..XO
X.OX
XX.X

XXXO
OXOX
OOOX
TOX.

OOXO
.OX.
.OXO
XXXX

X...
O.X.
XXOX
.O.O

O.XO
OOOX
O.X.
XXXX

..XX
.O.X
O..T
O..X

OTX.
.X..
O.XX
O...

XO..
.XX.
XO..
OT..

TOOX
XOOX
XXXO
OXOX

XXXO
OXXO
XOXO
XOOO

.O..
XTX.
O..X
X.O.

XOXO
XX..
XOO.
XO..

XOO.
XX.T
..OO
X...

.XOX
.OX.
OX.X
X.OO

OOOO
..TX
XXXO
XX.O

.OXO
XXXX
.OXO
OOX.

O.OX
OOX.
TXXX
X.O.

.T..
..O.
....
.X..

X.OO
XXTX
XO.O
XO..

OXOX
.XXO
.X.O
XTO.

XOXO
OOXO
OXXX
OXTX

TO..
.OX.
OXOX
XX.O

XOOX
OXXX
OOOX
XOTX

XXXX
.XO.
OOXO
O.OX

.X..
....
....
....

...O
XO..
..XX
OXT.

...X
..TO
.X..
XO..

OXXO
O..O
OTXO
XXXX

....
....
O.X.
....

OXXO
XOOX
OXOO
XXXO

OOXX
OOOO
XOXX
OXXX

OXXO
OXXX
OOOX
XOOX

XX..
OX..
..TO
XOOX

O.OO
TXXO
.XXX
XOXO

..XO
..OX
XO.X
..O.

.OOX
O.X.
O...
..XX

....
T...
OX.O
X...

XOT.
.O.O
OXXX
.XXO

XXXT
OXXX
OXOO
OXOO

..X.
....
X.X.
OOTO

XXO.
.XOO
OXXO
OX.X

XOOO
X.O.
XTXX
X..O

OXX.
..O.
OO.X
XX..

XOXO
OOXX
XOOX
XOXO

OOOX
XOXX
TXXX
OOXO

XXOX
XXOO
OXXO
OXOT

...O
.XOX
XO.X
T.O.

XXXX
O...
....
O.O.

OOT.
.OX.
.X.X
..X.

OOXX
OOXX
XXOX
OXOO

.X.X
.XXO
X.OO
XOOT

X...
O.O.
TX..
....

.TXO
OXXO
XOXX
O.XO

TXX.
XOOX
OO..
OOXX

.XOX
.XXO
OXO.
XTO.

....
...X
....
..O.

XOXX
OXXO
OTXO
OXXO

XXXX
XOOX
XOO.
.OO.

OXOX
OOXO
XX.X
...T

X...
.XO.
...X
.OO.

XXOO
X.O.
.OXO
O.XX

XXX.
OOXX
.OX.
OOXO

TOXX
XOOO
XXOO
OXXX

X.XO
OTXX
XOOO
OXX.

OXO.
.OXX
OXOO
X.XT

....
T...
.O..
..X.

XXXO
.OXO
XTOO
XXOO

O.XO
OXXX
O...
OX..

.OXT
XOO.
OXXO
XXXO

....
....
.TX.
....

OXXX
OO..
O.X.
T.OX

..X.
..TO
..X.
O.X.

TXOX
.O.O
OXXO
XXXO

.OX.
XXXX
.OO.
O...

OTOX
OOX.
X.O.
XXOX

XOXX
TOXO
XOOO
XXXO

O.X.
XO.X
..OX
.OXO

XOOX
XOOX
OOXX
XOXO

X.T.
....
..O.
....

X.XO
O.O.
XT..
OX..

.OXX
OOXX
TOXX
.O.O

TX.X
XO..
..O.
...O

T.O.
X...
....
....

OOXX
.OXX
XXOO
XOOX

.XOX
XXOO
T.OX
X.OO

OOOX
..XO
XXXX
XO.O

O.X.
XOX.
XXOO
.OXO

.OXO
T.X.
O.X.
XOX.

XXO.
.O.X
XXOO
O.XO

.X.O
XXXX
.XOO
OXOO

XOXO
XOO.
XXTX
OOX.

.OTX
O.X.
OXXO
XOX.

OX.X
OOOO
XX..
X...

OOX.
...X
...X
OO.X

...X
....
....
...T

.XXO
.XXO
OXOO
XOXO

OXO.
OXXO
....
XXXO

T...
XOX.
X.O.
...O

O.TX
.OX.
.XXO
XOXO

O.XO
.OOX
XOXX
OXOX

.OX.
....
XO..
XOXO

.OXX
O.XO
OXX.
XOXO

....
T...
XO.X
.O..

XO.X
.O.O
XOTX
XO..

XXXO
OOOO
XOXX
OXXO

.X..
....
....
....

....
....
X...
....

XO.O
X.X.
XO..
XOXO

OXXX
XOXX
OOOO
XOXO

XXXX
OOXO
XOTO
OOXX

.O.O
.XOX
.O.X
TX..

XOOO
XXXX
OOOX
.OXX

XXXT
O..O
XXO.
XOO.

OXOO
OX..
XXXX
OX.O

...X
.O.X
...X
.O.T

OXOO
XOXX
XOOX
OXTX

.TOO
XO..
..X.
...X

O...
.OO.
X.X.
XX.O

XT.X
OX.O
XO.X
XOOO

.OXT
O.X.
.X.O
X...

.X.T
....
OOX.
..X.

OXO.
.X.O
OX.O
XXTX

OXXX
OX.O
X.OX
OX.O

XXTO
XOOO
XXOX
XOXO

XOOX
OXTX
OXXX
XOOO

X...
XO..
X...
TO..

OXXO
TOOO
XXOX
XXO.

XOXX
OO..
OXXO
O.XX

X...
.X..
.OT.
O..X

....
....
...X
....

X...
.X..
....
O...

.OTO
XOOO
XXX.
OXXX

X..T
.OXO
XXOO
XOX.

X.O.
X..O
...O
T.X.

.XOO
XOXX
OOX.
..OX

.OX.
OOX.
..XX
XOXO

XXTO
OOOX
XXXX
XOOO

X.OO
.X..
OXTX
O..X

XOOO
XXOX
OXOO
XXXO

XXXX
XOOT
XOOO
OXXO

XOOX
XTOO
OXXX
OXOX

...O
.T..
X.X.
.X.O

X.O.
OX..
O.T.
..XX

..OX
OXO.
XXOO
X.OX

...X
OX.O
....
.X..

O.XO
OOX.
XXOX
XXOO

....
..O.
TX..
....

X.OO
OXO.
O.XO
XXXX

OOOX
.OOX
XXXX
.O.X

....
XO..
..O.
X...

XX.O
XTXO
XOXO
OOXO

X...
XXXO
.OTO
..OX

XXTX
OX.O
.OXO
O..X

O.TX
OOX.
.XXO
XOX.

X.XX
X..O
.TX.
OOOO

.X..
...O
....
..T.

O.XO
XX.X
.X..
OTOO

OXXX
O...
O...
T...

....
O..X
...X
....

OOXX
TOOO
.OXX
XOXX

XXOO
OXOX
OXXX
OXOT

OXXX
.OOX
XOO.
OX.X

TOXO
OXOX
OXXO
XXXO

XXOX
OOXX
XOXO
OOOX

.X.X
OXOO
XOX.
OXOT

OXXX
O...
O...
T...

.O..
XXOX
.X.T
OOXO

OOXX
XOXX
XXOO
TOOX

X..O
XXO.
.O..
O.X.

XXOO
OXXX
TXOO
XOOX

.O.X
XO.X
O..X
O..X

X.O.
.XX.
.OX.
OO.X

..O.
O...
O..X
XXTX

XXTX
OX.O
OX..
OX.O

OXOX
..XX
OOOX
...X

....
....
..O.
.X..

OXOX
OOXO
T.OX
OXXX

OOTX
XXOX
OXOX
XOXO

XOOO
XOOX
XXXO
OXXO

OOO.
.XXO
OOXX
.XX.

OXO.
XXXX
X.XO
O.OO

XOXX
OXOX
OTXO
XXOO

OXX.
.O..
X.O.
X..O

XTXX
OOX.
OXX.
.OO.

.T..
XXXX
...O
.OO.

OOXT
XXOX
OOXX
XOOX

....
....
TXXX
OO..

OO.X
XT.O
.XO.
.XXO

XTXO
XOXO
OXOX
OXXO

XO.O
OXO.
O..X
..XX

OX.X
OOO.
O.OX
XX.X

XOO.
XTXX
X..O
XOO.

XOXO
OOOT
XXOX
X.XO

...X
.O.X
...X
O..T

XO..
XX..
.OO.
XO..

...X
O.OX
XTO.
.XXO

OXXX
O.XO
OX.O
XOX.

.X..
X.XO
..O.
X.TO

XXXO
OOXO
OXX.
OOXX

OOXO
XOXO
XXXX
O.OX

XXOO
XOOO
.TXX
OXOX

XOXO
XXOO
OXXX
OOXO

..X.
....
..T.
.O..

XXOX
XXOO
XOOO
OXOX

OXT.
OX..
.X..
OX..

XO.X
..OX
T...
XOO.

.XOO
O.XX
XOXO
XOOX

XOOX
XXOX
XXO.
.OOO

.OX.
XO.X
.OOX
XO..

XX.O
O.TX
OOX.
OX..

O.T.
..X.
OX..
.XO.

X...
....
OOTO
X.X.

....
O.O.
XOX.
...X

XOXX
OXOO
OXXX
TXOO

..OX
OOXO
XXXO
TX..

O.OX
X.X.
.T.X
XOO.

X...
O...
...X
.OX.

X.XX
.XTO
OOOO
XX.O

.X..
OX..
.XO.
.XO.

O..X
.OX.
XXO.
...O

TXXX
.O.X
OO.X
O.OX

.OXO
X..X
OX.O
TX.O

XOOO
XXXT
X.O.
OXOX

X..O
XTXO
..OO
.XXO

OXOO
OXOO
.X..
XXXX

OOOX
OO.X
..OX
XXXX

.O.X
O.X.
OXOO
XTXX

OOOX
X.TX
X.XX
OOOX

O..X
OO..
.XO.
XXXO

....
OX..
....
.XT.

OXOO
X.XX
OXXX
OXOO

.XOX
X..O
..OX
..OX

O.X.
T.O.
O.X.
OXX.

OO..
..XX
.X.O
XOXO

...T
XXXX
...O
O..O

.O.X
.OX.
XT..
X..O

XOTO
OXOX
XXOO
OXXX

OOO.
O.OX
T.XX
X.X.

OOXX
XXXX
OOOX
OTOX

.OOX
O..X
O.OX
XTXX

OOX.
XOXX
OXOO
OXXX

XOXO
O..X
X..O
..OX

OOXO
XOTO
XXXO
OXXX

OOOO
O.XX
XTX.
OXX.

....
XOX.
X...
OOT.

O.OX
OO.X
XXTX
.O.X

XOOX
.OXO
OXOX
.X..

T...
.X..
..XO
..OX

XOOX
XOXO
OXOX
X.OX

OOXX
OOOX
XX.X
XXOO

OXOO
OXTX
OXOO
XXXX

X.XO
X.O.
.O..
OOXX

OTXX
OXOO
XXOX
XOXO

OOOO
XOXO
OXXX
XXOX

OOXO
XOXX
XXOO
XOXO

XXXO
XOXO
TXOO
XOOX

OXXO
O...
XXXX
T.OO

T...
....
.X..
..XO

X..O
XOOO
XXXX
XOO.

TOXX
OOXX
XXOX
O.OO

.O.X
XOXX
OO.X
O..X

.OOX
OO.X
OO.X
XXXX

OTOX
XXOX
XXXO
OXOO

OX.X
OXXT
OOOX
.OXX

O.X.
TOOX
X.OO
XXXO

..O.
TOX.
.X.X
OOX.

XXOO
OT.X
OOO.
XXXX

OX.X
.O..
..OX
O.XT

OXOO
.XOX
XXXX
XOOO

XOOX
XXOX
XXT.
OOOO

XOT.
.OXO
X.XO
..X.

XXX.
XOOO
XOOO
XX..

XOO.
XXXX
XOO.
XO.O

XXXO
OOXX
XOOX
OOXO

OTOX
XXO.
OXOX
..OX

XXXO
OOXX
OTXX
XOOO

XXXO
O.X.
.OT.
OXXO

XO.X
XXXO
XOOO
OXOX

.XOX
XTXO
.OOO
X...

OOXO
.XXX
O.OX
OXOX

OXXX
OOOO
XOXO
XOXX

.O.T
O.XO
.XX.
X...

T.O.
O...
..O.
XX.X

XOXO
XTXO
OXOX
OOXX

XXXX
OOXO
XTOX
XOOO

.XOX
OXX.
.XOO
XO..

T..O
OXOO
X.X.
.X.X

OOO.
...T
XXXX
....

XXOX
XOXO
OXO.
XXOO

..OX
OX.O
X..X
OXO.

XOOO
OXOX
XOXX
XOXT

.O.X
OOOX
.OOX
XXXX

OOOO
....
.XX.
XX..

X...
O.O.
.O.X
X.T.

OOOT
X...
X...
X...

OO..
XOT.
.X.X
O.X.

XXOX
O.OO
XOXO
XXTO

XOXO
.X.X
O.XO
OOXX

OXOX
X.XO
XXOO
XXOO

...O
....
.T..
...X

...O
OOTO
..XX
XX..

OXXO
OOXO
.OX.
XXXT

XOOO
.XOX
XXXX
OOOX

...X
O.X.
OXX.
X.OO

XOOX
OXXX
OOXX
OXOO

OXOO
XXTX
.XOO
.X..

XO.X
.OXT
XX.O
OOOX

OOXO
TOX.
XOOX
XXOX

OXXO
.OOX
.XOX
X..O

OXOO
XOOX
OOXX
XXOX

XOOO
OXOX
XXOX
OXOX

XO.X
.OT.
XOX.
OO.X

.OXO
O.XO
.OX.
XTXX

XOXO
O.XO
XXXX
OOOX

XOXO
XXOO
XOOO
OXXX

XX.X
X..O
.O.O
...O

...X
OT..
.X.X
.XOO

OO.O
XOO.
O.XX
XXXX

..X.
..TO
....
O.X.

X.XT
...X
..O.
X.OO

....
.XOO
..XX
.XO.

TX..
.OX.
..O.
..XO

....
OO.O
...X
.X.X

....
.TOX
.X..
....

TXOX
OX.O
XO.O
.X..

OXX.
XXOO
XO..
OXXO

XOXX
.O.O
.O.O
XOXX

X..O
XX..
..TO
.O.X

XXOX
OTXX
.OOO
.XXO

OOOT
X...
X...
X...

OX..
....
O..T
X...

XXX.
OXO.
.OXO
OXOX

OXOX
OXXO
OX..
XX.O

XOOO
TOXO
X.OX
.XXX

XXOO
OX.O
.XXO
OX.X

XXXO
XOXO
OO.X
XXOO

OXXX
O...
O...
T...

OX..
.OX.
..O.
.XXO

XXXX
XOOX
XOO.
.OO.

T...
OOOO
XX..
X..X

.X.O
....
...X
.OXO

X.OO
X..O
XOTO
XXX.

...X
O...
..X.
.X.O

..X.
.X..
O...
X.OO

XXOO
OOXX
XOXO
OXXO

O.XO
OOXO
O.X.
XXXX

.OX.
..X.
OTX.
O.X.

..X.
.O.X
....
...T

..X.
....
.O.X
....

....
...X
...X
.O.O

XOXO
XX.O
XOTX
.OOX

X.X.
OO..
....
X...

X...
...O
.X..
.O..

.XOO
O.XX
XOXX
.O.O

XXOO
XXOX
OOXX
OXOO

.T.O
.X..
XXX.
.O.O

OOXX
.XX.
OT..
.XO.

OTXX
XXOX
OXOO
XOXO

TXXX
...X
OOOX
.OOX

OXOX
.XX.
OXOO
XXO.

OXXO
O..O
OTXO
XXXX

OXO.
OXOO
.XO.
XXXX

...X
..T.
OX..
XO..

.O.X
T.OO
...X
O.XX

O..X
OOXO
OX.X
X.X.

XXXX
XOXO
XOOO
X.OO

...T
.O.O
.XO.
.X.X

XXXO
OOOX
XXXO
XOOO

.O.X
.OXO
TXXX
XOO.

.O..
....
X...
....

OOXX
XOOX
XOOO
TXXX

..O.
T.O.
..X.
...X

..XX
.TOX
....
..OO

OX..
OTX.
X.XX
OOOX

.XOO
TXXX
.X.O
OX.O

XXTX
X.OX
O..X
O.OO

OOXO
XOXO
XTOO
XXXX

OXXO
XXXO
XOOO
XXOO

XXOX
OXXO
OOXX
OOXO

OXXX
OOOO
XOXX
XXOO

.X..
X..T
O...
....

XO..
XXXO
OO.X
.X.O

OXOX
XOXO
XOOX
XXOO

.X.O
..XT
..XO
...O

XXXO
OXOO
XOTO
XOXX

.OXX
O..O
.OXX
XO.X

.XO.
....
..X.
.XO.

OOOX
TXOX
OOXX
XOXX

XOOX
XOOO
TXOX
XXXO

...X
....
.XXX
OOOO

OX..
OX.T
XXOO
XOXO

...X
.OOX
...X
...T

XOXO
XTXO
XOOX
OXXO

XOXO
OXXT
OXXO
OOXX

OXXO
XOOX
XOOX
OXOX

XO.X
OTOO
X.XX
OOX.

....
...X
....
....

OXXX
XTOO
OXOX
OXOX

.OOX
X.X.
OXO.
XO.X

XX.O
.X.O
X.XO
.OTO

OOX.
XOO.
OXXX
XXTO

XXXO
XO.X
O.OX
OOOX

.XX.
T..O
.O..
X.O.

X.O.
..XO
OX.T
XO.X

T...
.O.O
X.OX
X.XO

OXO.
OXXO
OX.X
.XOX

OXOX
TXOX
X.OO
OOXX

XXOO
XXOO
XOOX
OOXX

X.O.
.X.O
XTXX
OOOX

XXOO
OOOO
...X
.XXX

OOXO
XXXX
OOX.
.OX.

.XO.
.X.O
...X
.OX.

O...
O.XX
OXX.
O.T.

XXOX
OXOO
XXOO
OXXT

.O.X
XO.X
XO..
TO..

XXXO
OXOO
XX.X
OOTO

O.XO
OOXO
..XO
XXXX

....
O.OX
...O
.XX.

.XXO
..XO
X.T.
XO.O

..X.
.X.O
O.XO
..XT

...X
.O..
....
....

XOO.
.XO.
OOXO
XXXX

XOXX
XOOO
OOXO
XOXX

XXXX
O.XO
OOXO
O.X.

..XO
TOOX
XOXO
X.OX

OX.X
O.TO
.XX.
XOOX

OOX.
XO.O
XXXX
XTOO

XX.O
OX..
X...
O.OX

XXXX
..XO
OOXO
.OXO

OOXT
XOOX
XOXO
XXXO

.OXO
O.XO
OOX.
XXXX

XOO.
XO..
XOOO
XXXX

X...
...X
X..O
.O..

X.O.
XO.O
X.X.
XO..

XOOX
XOXX
OOOO
OXXX

OXOX
OXXO
OXXX
OOXO

OOOX
X.TX
X.XX
OOOX

.T..
....
....
..X.

O.XX
O.XX
OX..
O.O.

O...
XX.O
.O.X
O.XT

OOXX
OOOO
XXOX
OXXX

.O.O
....
.X..
...X

OX..
....
.OXT
XO..

....
..X.
....
O...

...O
X...
...O
.XX.

XXXX
.OO.
O...
..OX

....
XOX.
....
T..O

X.X.
.TO.
....
....

.O.O
...X
..X.
T...

X...
....
...T
....

TXXX
O..X
.O.X
OOOX

OXXX
O...
O...
T...

.XXO
OOO.
OT..
XXXX

XOOX
XO.X
XOT.
.OOX

.XT.
...O
....
....

....
.O.X
.XO.
.X..

OX.O
XXXX
OXOO
.XO.

XOXX
.O.O
.O.O
XOXX

..XO
X..O
X..O
X..O

..XO
..TX
.O.X
O...

XXOX
OOOO
XOXX
OXXO

X.OX
X...
X.OO
XOXO

..OT
O..X
..XO
XOX.

XXXO
XOXO
OOOO
XOXX

XXOO
.X..
OXXO
OXOX

X.X.
OOOO
O.XT
XX..

XXX.
XOOO
XOOO
XX..

OT.O
OOOX
XOXX
XOXX

OOXX
XOXO
XOOX
OXXO

XOXO
OOXO
XXOX
TXOX

OX..
....
X...
TOX.

.OOX
.XO.
X..X
....

OOOX
XOXX
XOOX
XOXO

X.OO
.X.X
XX..
OTOO

OXXX
OTX.
OXOO
OOXX

..XO
.O.O
OTXX
XX..

...X
TXXX
.XOO
XOOO

OXOX
.XXO
OXO.
XX.O

OXXX
XO.O
XOO.
.O.X

OXXO
XXOO
.OOO
XXXX

O.X.
..O.
..XO
XXOX

OXOO
XXXT
OOXO
OXXX

X..O
.X.O
.OX.
X.OX

XO..
OX..
..X.
O..X

....
..T.
.X..
....

.XO.
OX..
XOX.
.O.X

OOXX
OXO.
X.OX
OXXO

XXOX
OXXO
OOOX
OOXX

OOX.
OX..
X...
O..X

OXXO
OOOO
XXOX
XOXX

T...
.O..
...X
....

OOOX
OOXX
OOXX
XXTX

..XX
..X.
..O.
T..O

XOOO
.X.X
OXXX
OO.X

XXOO
OXO.
OXXO
.X.X

.X.O
..O.
.O.X
OX.X

XXO.
OOOO
XXXO
XOX.

X.X.
O...
OOX.
XOOX

XOXX
.O.O
.O.O
XOXX

.XO.
O.TX
X.X.
XOO.

.XOX
XXXO
XO.X
OO.O

.O.X
XXTX
OOO.
XOX.

TX.O
X.XO
XOOO
XX..

.X..
....
....
..TO

OX.X
XTXO
XOO.
OX.O

XOOO
XOXO
OXXX
OOXX

XOOO
OOXX
XOOX
XXOX

X.O.
XO.O
XXTX
X.OO

OX.X
.TXO
.XOX
O..O

OOOX
X.TX
X.XX
OOOX

O..X
OOXO
XXXX
XO.O

...T
XXO.
.O..
O.X.

XX.X
OXOX
OXXO
OOOX

XOOO
...O
OX..
XXXX

X.OO
XO.O
X.O.
XTXX

OOX.
.OX.
XXXX
OXOO

XXXX
OO.O
OT..
X.OX

O.XX
XOOO
.OOX
XXXO

.OOO
XO.X
XXOX
T.OX

XOXX
.X.X
OXOX
OOOO

.OX.
.T.O
XOX.
XOOX

.OOX
.XTO
OXO.
XX.X

....
....
..X.
....

OXXX
OOXX
XOOO
OXXO

..OX
..TO
....
..X.

OXX.
XO..
.XO.
O.XO

OOOX
XOOX
XXXO
XOOX

....
.XO.
X.XO
.O..

OXXO
OO.X
XXX.
.OO.

....
....
.X..
.T..

..XO
.XO.
.OXX
O...

OOTO
XOOX
X..X
X.XO

OXOT
OOXO
XX..
XOXX

XOXX
OXXO
XXXO
OOOO

.XX.
OOOO
OOXX
.X.X

..OX
..X.
OX.O
X...

XO..
XXOO
XOXO
X.OX

..O.
OXO.
....
XXXT

O..X
TO..
OXXO
OXX.

XX..
OOT.
.XOX
....

XO.X
TOX.
XX.O
XOO.

OOTO
..XX
.OXX
....

.XXO
OXOO
XTX.
OOX.

OO.X
...T
....
X...

O..X
XTX.
O.O.
XXOO

OOOX
.XXO
.TXX
XOXO

..XO
X..X
....
OO..

OXXO
XXOX
OOOO
OXXX

....
....
....
X...

OOXX
OXOO
OXXX
OXXO

OOX.
XXXX
OOXO
O.X.

.X.O
....
....
....

OXXX
OOXX
XXOX
OOOO

XXXX
O.OX
OOOX
..OX

...X
X..O
XTXX
OOO.

X.XO
..O.
.TX.
O...

OXXX
OXOT
XOOO
OX.X

XXXX
OOXT
.OX.
XOOO

X.XO
OOXO
XX.T
.OXO

.O..
.O.O
....
XXXX

OXXO
OOTX
OOXX
XXOX

T...
OX.X
..X.
O.OX

.O.X
O.OX
...X
...X

..X.
O..X
OOXO
X.XO

OXXX
.OXO
O.OX
.XOT

OXTX
X...
OXXX
OOOO

X.XO
X...
..O.
OX.O

.OXX
OTXX
XOOX
XOOO

.XO.
...O
OX..
TX.X

XOXX
OOXO
XXOO
TXOX

XO.O
XXXX
..T.
.OO.

....
.OX.
O.X.
..X.

..X.
....
..O.
.T.X

XOOO
X.OX
.TXX
O.OX

XOOO
OXOO
XOXX
XTXX

....
TO.O
X.X.
OXX.

.X..
...X
OTOO
...X

.O.O
OO.X
XXXX
O.X.

XTXX
.OXO
..X.
OOXO

..OX
XX.X
..O.
XO.O

XXXX
O.XO
OXO.
XO.O

O..X
OOX.
OXO.
XTXX

XXXX
.XO.
.OXO
OOOX

O.X.
..XO
OOXO
XTXX

OXXO
OXOX
XOOX
OOXX

XXT.
XOOO
OOOX
OXXX

X.OX
XOX.
OOTO
...X

....
..O.
..O.
XTXX

OOXX
XXOX
XOOX
OOXT

O.T.
.O..
XX..
O..X

X..X
OOOO
X..X
XOOX

X.OO
XXO.
XOXO
X.OX

....
....
..XX
...O

T.OX
.OX.
OXO.
O.XX

O.OO
XXOX
.OXO
OXXX

.OO.
OXOX
XX.O
XXXO

XOXO
XOOX
XOXO
OOXX

OOOO
X..X
X..X
X.O.

..X.
XO..
TXOO
..X.

X.X.
OX.T
..O.
.OOX

XOTO
XOOX
XXXX
OOXO

XXXO
XOOX
OXXO
OXOO

OXOO
XXXX
OTOX
OXXO

XO..
OXOX
..XX
OOXT

..OX
XOOX
OX..
...X

OX.O
...O
..XX
OXXT

OO.X
..O.
....
X.XT

X.XO
XX.O
XOO.
.XO.

X.OO
XXXX
.OX.
OOOX

...X
..T.
OXO.
X...

....
....
....
....
stdout
Case #1: X won
Case #2: Draw
Case #3: Game has not completed
Case #4: O won
Case #5: O won
Case #6: O won
Case #7: Game has not completed
Case #8: O won
Case #9: O won
Case #10: Draw
Case #11: O won
Case #12: X won
Case #13: O won
Case #14: X won
Case #15: Game has not completed
Case #16: Draw
Case #17: X won
Case #18: Game has not completed
Case #19: X won
Case #20: O won
Case #21: O won
Case #22: X won
Case #23: Game has not completed
Case #24: O won
Case #25: X won
Case #26: O won
Case #27: X won
Case #28: Game has not completed
Case #29: Draw
Case #30: X won
Case #31: X won
Case #32: X won
Case #33: X won
Case #34: X won
Case #35: X won
Case #36: O won
Case #37: Draw
Case #38: Game has not completed
Case #39: O won
Case #40: O won
Case #41: X won
Case #42: O won
Case #43: O won
Case #44: X won
Case #45: Draw
Case #46: X won
Case #47: O won
Case #48: X won
Case #49: O won
Case #50: Game has not completed
Case #51: X won
Case #52: Game has not completed
Case #53: Game has not completed
Case #54: X won
Case #55: O won
Case #56: O won
Case #57: Game has not completed
Case #58: O won
Case #59: X won
Case #60: Game has not completed
Case #61: Game has not completed
Case #62: X won
Case #63: X won
Case #64: Game has not completed
Case #65: Game has not completed
Case #66: Draw
Case #67: X won
Case #68: X won
Case #69: Game has not completed
Case #70: O won
Case #71: X won
Case #72: X won
Case #73: X won
Case #74: X won
Case #75: Game has not completed
Case #76: Draw
Case #77: X won
Case #78: X won
Case #79: X won
Case #80: O won
Case #81: X won
Case #82: X won
Case #83: X won
Case #84: X won
Case #85: Game has not completed
Case #86: O won
Case #87: X won
Case #88: O won
Case #89: Game has not completed
Case #90: Game has not completed
Case #91: X won
Case #92: X won
Case #93: Game has not completed
Case #94: Game has not completed
Case #95: O won
Case #96: Game has not completed
Case #97: O won
Case #98: Game has not completed
Case #99: O won
Case #100: X won
Case #101: X won
Case #102: X won
Case #103: X won
Case #104: X won
Case #105: Game has not completed
Case #106: X won
Case #107: X won
Case #108: Draw
Case #109: Game has not completed
Case #110: Draw
Case #111: O won
Case #112: X won
Case #113: Game has not completed
Case #114: Draw
Case #115: Draw
Case #116: Draw
Case #117: X won
Case #118: Game has not completed
Case #119: X won
Case #120: Game has not completed
Case #121: O won
Case #122: Game has not completed
Case #123: O won
Case #124: Game has not completed
Case #125: X won
Case #126: Game has not completed
Case #127: Game has not completed
Case #128: Game has not completed
Case #129: X won
Case #130: X won
Case #131: X won
Case #132: X won
Case #133: X won
Case #134: Game has not completed
Case #135: Draw
Case #136: Game has not completed
Case #137: Draw
Case #138: X won
Case #139: X won
Case #140: Draw
Case #141: X won
Case #142: X won
Case #143: Game has not completed
Case #144: Game has not completed
Case #145: O won
Case #146: O won
Case #147: O won
Case #148: Game has not completed
Case #149: O won
Case #150: Game has not completed
Case #151: X won
Case #152: O won
Case #153: X won
Case #154: O won
Case #155: Draw
Case #156: Game has not completed
Case #157: O won
Case #158: O won
Case #159: X won
Case #160: Game has not completed
Case #161: O won
Case #162: Game has not completed
Case #163: Game has not completed
Case #164: O won
Case #165: Game has not completed
Case #166: Game has not completed
Case #167: X won
Case #168: Game has not completed
Case #169: Draw
Case #170: X won
Case #171: O won
Case #172: X won
Case #173: O won
Case #174: O won
Case #175: Game has not completed
Case #176: O won
Case #177: X won
Case #178: Game has not completed
Case #179: Draw
Case #180: Draw
Case #181: X won
Case #182: O won
Case #183: Draw
Case #184: O won
Case #185: Game has not completed
Case #186: X won
Case #187: Draw
Case #188: O won
Case #189: X won
Case #190: X won
Case #191: X won
Case #192: Game has not completed
Case #193: O won
Case #194: O won
Case #195: O won
Case #196: O won
Case #197: X won
Case #198: X won
Case #199: O won
Case #200: O won
Case #201: Game has not completed
Case #202: O won
Case #203: X won
Case #204: O won
Case #205: Game has not completed
Case #206: Game has not completed
Case #207: O won
Case #208: X won
Case #209: O won
Case #210: Game has not completed
Case #211: X won
Case #212: Draw
Case #213: X won
Case #214: Game has not completed
Case #215: Draw
Case #216: Game has not completed
Case #217: X won
Case #218: Game has not completed
Case #219: X won
Case #220: X won
Case #221: X won
Case #222: X won
Case #223: Game has not completed
Case #224: X won
Case #225: Draw
Case #226: X won
Case #227: O won
Case #228: X won
Case #229: X won
Case #230: Game has not completed
Case #231: X won
Case #232: O won
Case #233: O won
Case #234: X won
Case #235: Game has not completed
Case #236: X won
Case #237: O won
Case #238: X won
Case #239: X won
Case #240: Game has not completed
Case #241: O won
Case #242: Game has not completed
Case #243: Draw
Case #244: O won
Case #245: O won
Case #246: X won
Case #247: X won
Case #248: Game has not completed
Case #249: X won
Case #250: X won
Case #251: Game has not completed
Case #252: X won
Case #253: Game has not completed
Case #254: Game has not completed
Case #255: Game has not completed
Case #256: Game has not completed
Case #257: Game has not completed
Case #258: X won
Case #259: O won
Case #260: O won
Case #261: Game has not completed
Case #262: X won
Case #263: X won
Case #264: O won
Case #265: X won
Case #266: O won
Case #267: O won
Case #268: O won
Case #269: Game has not completed
Case #270: X won
Case #271: O won
Case #272: X won
Case #273: O won
Case #274: Game has not completed
Case #275: O won
Case #276: Game has not completed
Case #277: Game has not completed
Case #278: X won
Case #279: X won
Case #280: O won
Case #281: Draw
Case #282: X won
Case #283: O won
Case #284: X won
Case #285: O won
Case #286: Game has not completed
Case #287: X won
Case #288: X won
Case #289: Game has not completed
Case #290: O won
Case #291: Draw
Case #292: Game has not completed
Case #293: Draw
Case #294: O won
Case #295: O won
Case #296: X won
Case #297: O won
Case #298: X won
Case #299: X won
Case #300: X won
Case #301: X won
Case #302: Game has not completed
Case #303: X won
Case #304: Draw
Case #305: X won
Case #306: X won
Case #307: O won
Case #308: O won
Case #309: Game has not completed
Case #310: X won
Case #311: Game has not completed
Case #312: X won
Case #313: X won
Case #314: X won
Case #315: X won
Case #316: X won
Case #317: X won
Case #318: X won
Case #319: O won
Case #320: Game has not completed
Case #321: O won
Case #322: X won
Case #323: Game has not completed
Case #324: X won
Case #325: X won
Case #326: O won
Case #327: Game has not completed
Case #328: X won
Case #329: Game has not completed
Case #330: O won
Case #331: Game has not completed
Case #332: X won
Case #333: O won
Case #334: O won
Case #335: X won
Case #336: O won
Case #337: X won
Case #338: X won
Case #339: Draw
Case #340: Game has not completed
Case #341: X won
Case #342: O won
Case #343: O won
Case #344: X won
Case #345: Game has not completed
Case #346: O won
Case #347: O won
Case #348: Game has not completed
Case #349: X won
Case #350: Game has not completed
Case #351: X won
Case #352: X won
Case #353: X won
Case #354: Game has not completed
Case #355: X won
Case #356: Game has not completed
Case #357: X won
Case #358: O won
Case #359: X won
Case #360: X won
Case #361: X won
Case #362: X won
Case #363: X won
Case #364: Game has not completed
Case #365: X won
Case #366: O won
Case #367: O won
Case #368: X won
Case #369: O won
Case #370: X won
Case #371: O won
Case #372: Game has not completed
Case #373: O won
Case #374: X won
Case #375: O won
Case #376: O won
Case #377: X won
Case #378: X won
Case #379: X won
Case #380: O won
Case #381: Draw
Case #382: O won
Case #383: Game has not completed
Case #384: X won
Case #385: X won
Case #386: Game has not completed
Case #387: X won
Case #388: Game has not completed
Case #389: O won
Case #390: O won
Case #391: O won
Case #392: X won
Case #393: Game has not completed
Case #394: X won
Case #395: X won
Case #396: Game has not completed
Case #397: Game has not completed
Case #398: Draw
Case #399: O won
Case #400: Game has not completed
Case #401: X won
Case #402: Game has not completed
Case #403: X won
Case #404: O won
Case #405: X won
Case #406: X won
Case #407: Game has not completed
Case #408: X won
Case #409: X won
Case #410: X won
Case #411: O won
Case #412: X won
Case #413: X won
Case #414: Game has not completed
Case #415: Game has not completed
Case #416: X won
Case #417: X won
Case #418: Game has not completed
Case #419: O won
Case #420: O won
Case #421: Draw
Case #422: X won
Case #423: Game has not completed
Case #424: Game has not completed
Case #425: Game has not completed
Case #426: Game has not completed
Case #427: Game has not completed
Case #428: X won
Case #429: O won
Case #430: X won
Case #431: X won
Case #432: Game has not completed
Case #433: O won
Case #434: X won
Case #435: X won
Case #436: O won
Case #437: X won
Case #438: Game has not completed
Case #439: O won
Case #440: Game has not completed
Case #441: Game has not completed
Case #442: X won
Case #443: Game has not completed
Case #444: X won
Case #445: Game has not completed
Case #446: X won
Case #447: X won
Case #448: Game has not completed
Case #449: Game has not completed
Case #450: O won
Case #451: X won
Case #452: Draw
Case #453: Game has not completed
Case #454: O won
Case #455: Game has not completed
Case #456: O won
Case #457: O won
Case #458: Game has not completed
Case #459: Game has not completed
Case #460: O won
Case #461: X won
Case #462: Game has not completed
Case #463: X won
Case #464: Game has not completed
Case #465: X won
Case #466: O won
Case #467: O won
Case #468: Game has not completed
Case #469: O won
Case #470: O won
Case #471: O won
Case #472: Game has not completed
Case #473: X won
Case #474: O won
Case #475: X won
Case #476: O won
Case #477: X won
Case #478: Game has not completed
Case #479: X won
Case #480: X won
Case #481: X won
Case #482: O won
Case #483: Game has not completed
Case #484: Game has not completed
Case #485: O won
Case #486: Game has not completed
Case #487: O won
Case #488: X won
Case #489: O won
Case #490: Game has not completed
Case #491: X won
Case #492: Game has not completed
Case #493: O won
Case #494: O won
Case #495: Game has not completed
Case #496: Game has not completed
Case #497: X won
Case #498: O won
Case #499: X won
Case #500: O won
Case #501: X won
Case #502: X won
Case #503: X won
Case #504: X won
Case #505: Draw
Case #506: Game has not completed
Case #507: Game has not completed
Case #508: Game has not completed
Case #509: X won
Case #510: Game has not completed
Case #511: X won
Case #512: Game has not completed
Case #513: X won
Case #514: X won
Case #515: X won
Case #516: O won
Case #517: Game has not completed
Case #518: X won
Case #519: Game has not completed
Case #520: Game has not completed
Case #521: Game has not completed
Case #522: X won
Case #523: Game has not completed
Case #524: Game has not completed
Case #525: X won
Case #526: X won
Case #527: X won
Case #528: Draw
Case #529: X won
Case #530: X won
Case #531: Game has not completed
Case #532: X won
Case #533: O won
Case #534: Game has not completed
Case #535: O won
Case #536: Game has not completed
Case #537: X won
Case #538: X won
Case #539: Game has not completed
Case #540: O won
Case #541: X won
Case #542: X won
Case #543: X won
Case #544: O won
Case #545: Game has not completed
Case #546: O won
Case #547: O won
Case #548: Game has not completed
Case #549: O won
Case #550: X won
Case #551: Game has not completed
Case #552: Draw
Case #553: Draw
Case #554: Game has not completed
Case #555: O won
Case #556: Game has not completed
Case #557: X won
Case #558: O won
Case #559: Draw
Case #560: X won
Case #561: X won
Case #562: X won
Case #563: X won
Case #564: X won
Case #565: Game has not completed
Case #566: O won
Case #567: Draw
Case #568: Draw
Case #569: Game has not completed
Case #570: X won
Case #571: Draw
Case #572: O won
Case #573: X won
Case #574: X won
Case #575: X won
Case #576: X won
Case #577: O won
Case #578: Draw
Case #579: Game has not completed
Case #580: Game has not completed
Case #581: X won
Case #582: O won
Case #583: X won
Case #584: Game has not completed
Case #585: Game has not completed
Case #586: X won
Case #587: Game has not completed
Case #588: X won
Case #589: X won
Case #590: O won
Case #591: Draw
Case #592: Game has not completed
Case #593: O won
Case #594: X won
Case #595: Game has not completed
Case #596: Game has not completed
Case #597: O won
Case #598: O won
Case #599: O won
Case #600: Game has not completed
Case #601: O won
Case #602: Game has not completed
Case #603: Draw
Case #604: X won
Case #605: X won
Case #606: Game has not completed
Case #607: O won
Case #608: X won
Case #609: O won
Case #610: X won
Case #611: Game has not completed
Case #612: X won
Case #613: O won
Case #614: X won
Case #615: X won
Case #616: X won
Case #617: X won
Case #618: O won
Case #619: Game has not completed
Case #620: Game has not completed
Case #621: Game has not completed
Case #622: O won
Case #623: Game has not completed
Case #624: X won
Case #625: X won
Case #626: Draw
Case #627: Game has not completed
Case #628: X won
Case #629: X won
Case #630: Game has not completed
Case #631: Game has not completed
Case #632: X won
Case #633: O won
Case #634: Game has not completed
Case #635: X won
Case #636: Game has not completed
Case #637: X won
Case #638: X won
Case #639: Game has not completed
Case #640: X won
Case #641: O won
Case #642: Draw
Case #643: O won
Case #644: O won
Case #645: X won
Case #646: X won
Case #647: Game has not completed
Case #648: X won
Case #649: O won
Case #650: X won
Case #651: X won
Case #652: X won
Case #653: X won
Case #654: O won
Case #655: Game has not completed
Case #656: X won
Case #657: O won
Case #658: X won
Case #659: O won
Case #660: X won
Case #661: X won
Case #662: X won
Case #663: Draw
Case #664: O won
Case #665: Draw
Case #666: X won
Case #667: Game has not completed
Case #668: Game has not completed
Case #669: Game has not completed
Case #670: O won
Case #671: X won
Case #672: Game has not completed
Case #673: Draw
Case #674: X won
Case #675: X won
Case #676: X won
Case #677: X won
Case #678: X won
Case #679: Game has not completed
Case #680: X won
Case #681: X won
Case #682: O won
Case #683: Game has not completed
Case #684: O won
Case #685: Game has not completed
Case #686: Game has not completed
Case #687: X won
Case #688: X won
Case #689: Game has not completed
Case #690: O won
Case #691: X won
Case #692: X won
Case #693: X won
Case #694: Draw
Case #695: X won
Case #696: Game has not completed
Case #697: Game has not completed
Case #698: O won
Case #699: Draw
Case #700: O won
Case #701: O won
Case #702: X won
Case #703: X won
Case #704: O won
Case #705: Game has not completed
Case #706: Game has not completed
Case #707: X won
Case #708: Game has not completed
Case #709: Game has not completed
Case #710: Game has not completed
Case #711: O won
Case #712: Game has not completed
Case #713: Game has not completed
Case #714: Game has not completed
Case #715: Game has not completed
Case #716: O won
Case #717: X won
Case #718: Game has not completed
Case #719: O won
Case #720: Game has not completed
Case #721: X won
Case #722: X won
Case #723: Game has not completed
Case #724: X won
Case #725: Game has not completed
Case #726: O won
Case #727: O won
Case #728: X won
Case #729: O won
Case #730: Game has not completed
Case #731: X won
Case #732: Game has not completed
Case #733: Game has not completed
Case #734: Draw
Case #735: X won
Case #736: X won
Case #737: Game has not completed
Case #738: Game has not completed
Case #739: Game has not completed
Case #740: X won
Case #741: Game has not completed
Case #742: Game has not completed
Case #743: Game has not completed
Case #744: O won
Case #745: Game has not completed
Case #746: Game has not completed
Case #747: Draw
Case #748: X won
Case #749: X won
Case #750: X won
Case #751: X won
Case #752: X won
Case #753: Game has not completed
Case #754: X won
Case #755: X won
Case #756: Game has not completed
Case #757: Draw
Case #758: X won
Case #759: Game has not completed
Case #760: X won
Case #761: Game has not completed
Case #762: Game has not completed
Case #763: Game has not completed
Case #764: X won
Case #765: X won
Case #766: X won
Case #767: O won
Case #768: Draw
Case #769: O won
Case #770: Game has not completed
Case #771: Game has not completed
Case #772: O won
Case #773: O won
Case #774: X won
Case #775: Game has not completed
Case #776: Game has not completed
Case #777: X won
Case #778: X won
Case #779: O won
Case #780: Game has not completed
Case #781: X won
Case #782: Draw
Case #783: X won
Case #784: O won
Case #785: O won
Case #786: Game has not completed
Case #787: X won
Case #788: X won
Case #789: O won
Case #790: Game has not completed
Case #791: Game has not completed
Case #792: Game has not completed
Case #793: Game has not completed
Case #794: O won
Case #795: X won
Case #796: Game has not completed
Case #797: O won
Case #798: X won
Case #799: O won
Case #800: X won
Case #801: Game has not completed
Case #802: O won
Case #803: X won
Case #804: O won
Case #805: O won
Case #806: X won
Case #807: Game has not completed
Case #808: Game has not completed
Case #809: Game has not completed
Case #810: Game has not completed
Case #811: X won
Case #812: O won
Case #813: X won
Case #814: Game has not completed
Case #815: X won
Case #816: X won
Case #817: Game has not completed
Case #818: X won
Case #819: Draw
Case #820: X won
Case #821: X won
Case #822: Game has not completed
Case #823: X won
Case #824: O won
Case #825: O won
Case #826: X won
Case #827: Game has not completed
Case #828: O won
Case #829: Game has not completed
Case #830: O won
Case #831: Game has not completed
Case #832: Game has not completed
Case #833: Game has not completed
Case #834: Game has not completed
Case #835: X won
Case #836: Game has not completed
Case #837: Game has not completed
Case #838: Game has not completed
Case #839: Game has not completed
Case #840: X won
Case #841: O won
Case #842: X won
Case #843: O won
Case #844: Game has not completed
Case #845: Game has not completed
Case #846: X won
Case #847: O won
Case #848: O won
Case #849: O won
Case #850: O won
Case #851: X won
Case #852: Game has not completed
Case #853: O won
Case #854: X won
Case #855: O won
Case #856: X won
Case #857: O won
Case #858: O won
Case #859: Draw
Case #860: Game has not completed
Case #861: Game has not completed
Case #862: O won
Case #863: O won
Case #864: O won
Case #865: Game has not completed
Case #866: X won
Case #867: X won
Case #868: Game has not completed
Case #869: X won
Case #870: Game has not completed
Case #871: X won
Case #872: X won
Case #873: X won
Case #874: Game has not completed
Case #875: Game has not completed
Case #876: Game has not completed
Case #877: Draw
Case #878: Game has not completed
Case #879: O won
Case #880: Game has not completed
Case #881: X won
Case #882: Game has not completed
Case #883: X won
Case #884: X won
Case #885: O won
Case #886: O won
Case #887: Game has not completed
Case #888: O won
Case #889: Game has not completed
Case #890: Game has not completed
Case #891: X won
Case #892: X won
Case #893: Game has not completed
Case #894: O won
Case #895: Draw
Case #896: Draw
Case #897: X won
Case #898: O won
Case #899: X won
Case #900: X won
Case #901: O won
Case #902: X won
Case #903: X won
Case #904: X won
Case #905: X won
Case #906: X won
Case #907: O won
Case #908: Game has not completed
Case #909: O won
Case #910: O won
Case #911: X won
Case #912: Game has not completed
Case #913: O won
Case #914: Game has not completed
Case #915: O won
Case #916: Draw
Case #917: Game has not completed
Case #918: Game has not completed
Case #919: Game has not completed
Case #920: O won
Case #921: O won
Case #922: X won
Case #923: O won
Case #924: O won
Case #925: X won
Case #926: X won
Case #927: X won
Case #928: O won
Case #929: Game has not completed
Case #930: X won
Case #931: O won
Case #932: O won
Case #933: Game has not completed
Case #934: O won
Case #935: X won
Case #936: Game has not completed
Case #937: O won
Case #938: Game has not completed
Case #939: O won
Case #940: X won
Case #941: Game has not completed
Case #942: O won
Case #943: X won
Case #944: X won
Case #945: O won
Case #946: Game has not completed
Case #947: X won
Case #948: O won
Case #949: X won
Case #950: Draw
Case #951: X won
Case #952: X won
Case #953: Game has not completed
Case #954: O won
Case #955: O won
Case #956: Game has not completed
Case #957: O won
Case #958: Game has not completed
Case #959: X won
Case #960: X won
Case #961: Game has not completed
Case #962: Game has not completed
Case #963: O won
Case #964: X won
Case #965: Game has not completed
Case #966: O won
Case #967: X won
Case #968: X won
Case #969: Game has not completed
Case #970: X won
Case #971: X won
Case #972: X won
Case #973: X won
Case #974: O won
Case #975: Game has not completed
Case #976: O won
Case #977: X won
Case #978: X won
Case #979: Game has not completed
Case #980: O won
Case #981: X won
Case #982: Game has not completed
Case #983: Game has not completed
Case #984: O won
Case #985: Game has not completed
Case #986: O won
Case #987: O won
Case #988: Game has not completed
Case #989: Game has not completed
Case #990: X won
Case #991: Draw
Case #992: X won
Case #993: X won
Case #994: Game has not completed
Case #995: Game has not completed
Case #996: Game has not completed
Case #997: Game has not completed
Case #998: X won
Case #999: X won
Case #1000: Game has not completed