import csv


def read_all_reviews_seperately(filename1, filename2):
    """
    Read all the reviews and the reviewCount for each restaurant
    Returns:
        Tuple(reviewCount for each restaurant, list of all reviews)
    """
    with open(filename2, 'r', encoding='utf-8') as f2:
        reader = csv.reader(f2)
        reviewCount_list = []
        for row in reader:
            reviewCount_list += row
    f2.close()
    reviewCounts = map(int, reviewCount_list)

    with open(filename1, 'r', encoding='utf-8') as f1:
        reader = csv.reader(f1)
        L = []
        for row in reader:
            L += row
        f1.close()
    return (reviewCounts, L)