godzina = 20
uplynie = 34

bedzie = (godzina + uplynie) % 24
print(f"Jest {godzina}, za {uplynie}h będzie godzina {bedzie}")