# -*- coding: utf-8 -*-
"""
Created on Fri Feb  1 11:15:46 2019

@author: 29132
"""

#!/bin/python3

import math
import os
import random
import re
import sys

class SinglyLinkedListNode:
    def __init__(self, node_data):
        self.data = node_data
        self.next = None
class SinglyLinkedList:
    def __init__(self):
        self.head = None
        self.tail = None
    def insert_node(self, node_data):
        node = SinglyLinkedListNode(node_data)
        if not self.head:
            self.head = node
        else:
            self.tail.next = node
        self.tail = node
def printLinkedList(head):
    if head==None:
        return
    pnext=head
    while pnext:
        print(pnext.data)
        pnext=pnext.next
            
llist_count = int(input())
llist = SinglyLinkedList()
for _ in range(llist_count):
    llist_item = int(input())
    llist.insert_node(llist_item)
printLinkedList(llist.head)
