# Visualizer from chatgpt

import matplotlib.pyplot as plt

def read_points(filename=None):
    points = []
    if filename:  # If input comes from a file
        with open(filename, "r") as f:
            n = int(f.readline().strip())
            for _ in range(n):
                x, y = map(int, f.readline().split())
                points.append((x, y))
    else:  # If input comes from standard input
        n = int(input().strip())
        for _ in range(n):
            x, y = map(int, input().split())
            points.append((x, y))
    return points

def plot_points(points):
    xs, ys = zip(*points)  # Separate into x and y lists
    plt.figure(figsize=(6, 6))
    plt.scatter(xs, ys, c="blue", marker="o")
    plt.title("2D Points")
    plt.xlabel("X")
    plt.ylabel("Y")
    plt.grid(True)
    plt.show()

if __name__ == "__main__":
    # Example: read from stdin
    # Just paste your input when running
    points = read_points()
    plot_points(points)
