w=[] for h in range(int(input())): w.append(input()) j=[h for h in w if not h is ""] print(w) print(j)