# class Node:
#     def init(self, x, y, next):
#         self.x = x
#         self.y = y
#         self.next = next
#     def repr(self):
#         return str((self.x, self.y))
class Node:
    def __init__(self, x, y, next=None):
        self.x = x
        self.y = y
        self.next = next
    def __repr__(self):
        return str((self.x, self.y))