pythondp = [0, 1, 1] for i in range(3, 491): dp.append(dp[i - 1] + dp[i - 2]) while True: N = int(input()) if N < 0: break print(f"Hour {N}: {dp[N]} cow(s) affected")
dp = [0, 1, 1] for i in range(3, 491): dp.append(dp[i - 1] + dp[i - 2]) while True: N = int(input()) if N < 0: break print(f"Hour {N}: {dp[N]} cow(s) affected")