#!/usr/local/bin/python3 def hit(c,q): for i in range(3): if c[i]==q:return i return -1 def N(c,b,o,q,a,bb): c=c[:]