#!/usr/bin/env python3

# Open a file entered as a commandline argument
# Print out the first 10 lines of the file

# Hint: if you are using the readline method on the file object you will need to strip the newline characters
import sys

path = sys.argv[1]
fd = open(path, 'r')

# print(''.join(fd.readlines()[:10]), end='')

contents = fd.readlines()

for i in range(10):
    print(contents[i], end='')