There are $n$ points on the plane. Each of these points has been assigned a certain color, but not that all points are of the same color. Determine the largest possible (Euclidean) distance between any pair of different-colored points.
The first and only line of the output should contain the square of the maximum distance between two points of different colors.