Suppose x−3x-3x−3 and y+3y+3y+3 are multiples of 777. What is the smallest positive integer, n,n,n, for which x2+xy+y2+nx^2+xy+y^2+nx2+xy+y2+n is a multiple of 777?