def is_happy(n: int) -> bool:
    # your move