line = ['7\n', 'Leonardo DiCaprio,The Revenant\n', 'Christian Bale,Vice\n', 'Morgan Freeman,Shawshank Redemption\n', 'Leonardo DiCaprio,The Great Gatsby\n', 'Christian Bale,American Psycho\n', 'Morgan Freeman,The Dark Knight\n', 'Christian Bale,The Dark Knight\n', 'Samuel L. Jackson,Pulp Fiction']

# list= line.remove('\n')
top5 = line[:5]


print(top5)