from typing import Tuple


def get_happiest_and_saddest(emotions: list) -> Tuple[int, int]:
    """
    Get happiest and saddest index
    :param emotions: list of lists containing emotions likelihood
    :return: happiest_tweet_index, saddest_tweet_index
    """
    happiest_item = max(emotions, key=lambda e: e[2])  # Based on joy
    saddest_item = max(emotions, key=lambda e: e[4])  # Based on sadness
    return emotions.index(happiest_item), emotions.index(saddest_item)