#!/usr/bin/env python3

import sys

infile = sys.stdin
outfile = sys.stdout
sep="\t"
# row length
rl = float("-inf")
for line in infile:
    # line array
    la = line.strip().split(sep)
    myrl = len(la)
    if myrl > rl:
        rl = myrl
    if ("" in la) or (myrl < rl):
        continue
    outfile.write(line)
