def level_from_xp(exp: int):
    """Returns the level for the specified amount of EXP.

    Parameters
    ----------
    exp: int
        The amount of EXP to find the level foor.

    Returns
    -------
    int:
        The level for the specified amount of EXP.
    """
    level = int(((exp + 1) * 2) ** (1 / 3))
    if level == 0:
        level += 1
    return level