def METHOD_NAME(hour: int, minute: int, second: int, franctional_second: int):
    if not 0 <= hour <= 24:
        raise ValueError("Hour must be in 0..24")
    if hour == 24 and (minute != 0 or second != 0 or franctional_second != 0):
        raise ValueError("Day time exceeded")
    if not 0 <= minute <= 59:
        raise ValueError("Minute must be in 0..59")
    if not 0 <= second <= 59:
        raise ValueError("Second must be in 0..59")
    if not 0 <= franctional_second <= 999999999:
        raise ValueError("Fractional second must be in 0..999999999")