def max_adjacent(filename, n):
    """Finds maximum product of n adjacent numbers in input number"""
    digits = []
    with open(filename) as f:
        for line in f.readlines():
            digits += [int(d) for d in line if d != "\n"]
    highest = 0
    for i in range(len(digits)-n):
        current = 1
        for j in range(n):
            current *= digits[i+j]
        highest = max(current, highest)
    return highest