from typing import Tuple


def get_f(n: int, func: int) -> Tuple[int, int]:
    """Return f(0), f(1)."""
    power = 1 << (n - 1)
    f1 = func >> power
    f2 = func & (1 << power) - 1

    return f1, f2