@staticmethod
def c():
    n = (2025 - int(sys.stdin.readline().rstrip()))
    res = []
    for i in range(1, 10):
        if (((n % i) != 0) or ((n // i) > 9)):
            continue
        res.append(f'{i} x {(n // i)}')
    print(*sorted(res), sep='\n')
@staticmethod
def c():
    n = (2025 - int(sys.stdin.readline().rstrip()))
    res = []
    for i in range(1, 10):
        if (((n % i) != 0) or ((n // i) > 9)):
            continue
        res.append(f'{i} x {(n // i)}')
    print(*sorted(res), sep='\n')