from typing import List
from typing import Tuple


def read_data() -> List[Tuple[str, int]]:
    """
    Read list of people and how much did they pay
    :return: List[name, how much money did he / she gave]
    """
    print('Enter names and amounts of money in format of "Jack: 1984"'
          'If man didn\'t pay anything you can just write a name'
          'End the list with "end."')
    res = []
    while True:
        s = input()
        if s == 'end.':
            return res
        if ':' not in s:
            res.append((s, 0))
        else:
            name, money = s.split(':')
            res.append((name, int(money)))