diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -1,7 +1,7 @@
 N = int(input())
 H = list(map(int, input().split()))
 
-ans = 0
+ans = H[0]
 for i in range(1, N):
     if H[i] > H[i - 1]:
         ans = H[i]
