using System;
public class Point
{
public int x;
public int y;
public Point(int x, int y) {
this.x = x;
this.y = y;
}
public override string ToString()
return "("+x+","+y+")";
public static Point operator+(Point a, Point b) {
return new Point(a.x+b.x,a.y+b.y);
public class Program
public static void Main()
Point a = new(2, 3);
Console.WriteLine(a);
Point b = new(5, 4);
Console.WriteLine(b);
//Point c = new(2, 3)+new(5, 4);
var c = new Point(2, 3)+new Point(5, 4);
Console.WriteLine(c);