#!/bin/python3 import sys def onBoard(n, x, y): return (x>=0) & (x=0) & (y