from typing import Callable


def mask_table() -> dict[int, Callable[[int, int], int]]:
    """Mask functions table.

    Returns:
        dict[int, Callable[[int, int], int]]: Dictionary of the form {mask
        number: lambda function}
    """
    table = {
        0: lambda x, y: (x + y) % 2,
        1: lambda x, y: x % 2,
        2: lambda x, y: y % 3,
        3: lambda x, y: (x + y) % 3,
        4: lambda x, y: (x//2 + y//3) % 2,
        5: lambda x, y: (x*y) % 2 + (x*y) % 3,
        6: lambda x, y: ((x*y) % 2 + (x*y) % 3) % 2,
        7: lambda x, y: ((x*y) % 3 + (x+y) % 2) % 2
    }

    return table