#! /opt/gensoft/exe/freebayes/v1.3.10/venv/bin/python3.10

import sys

header=True
for line in sys.stdin:
    if line.startswith('##'):
        if header:
            print(line.strip())
        continue
    elif line.startswith('#'):
        if header:
           print(line.strip())
           header=False
        continue
    print(line.strip())
