space1 = 'X'
space2 = 'X'
space3 = 'X'
space4 = 'X'
space5 = 'X'
space6 = ' '
space7 = 'O'
space8 = ' '
space9 = ' '

print('   |   |   ')
print(' {} | {} | {} '.format(space1,space2,space3))
print('   |   |   ')
print('-----------')
print('   |   |   ')
print(' {} | {} | {} '.format(space4,space5,space6))
print('   |   |   ')
print('-----------')
print('   |   |   ')
print(' {} | {} | {} '.format(space7,space8,space9))
print('   |   |   ')

#toplinewinning
if (space1 == space2) and (space1 == space3):
    print('WIN')


#do the other winning options