Problem: There are N mountains ranging from east to west, and an ocean to the west.  At the top of each mountain, there is an inn. You have decided to choose where to stay from these inns.  The height of the i-th mountain from the west is H_i.  You can certainly see the ocean from the inn at the top of the westmost mountain.  For the inn at the top of the i-th mountain from the west (i = 2, 3, ..., N), you can see the ocean if and only if H_1 \leq H_i, H_2 \leq H_i, ..., and H_{i-1} \leq H_i.  From how many of these N inns can you see the ocean?

Submission attempts (in order):
N = int(input())
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
#print(sum(tmp))
print(1)

N = int(input())
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
#print(sum(tmp))
print(1)

N = int(input())
N = 3
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
N = 3
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

import numpy as np
N = int(input())
H = np.array(map(int, input().split()))

tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

import numpy as np
N = int(input())
H = np.array(map(int, input().split()))

tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

N = int(input())
H = map(int, input().split())
#H = list(H)
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=H[i]), all(H[i]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = map(int, input().split())
#H = list(H)
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=H[i]), all(H[i]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
H = list(H)
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
H = list(H)
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

import numpy as np
N = int(input())
H = raw_input().split()

tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

import numpy as np
N = int(input())
H = raw_input().split()

tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

N = int(input())
H = raw_input().split()


tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=H[i]), all(H[i]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = raw_input().split()


tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=H[i]), all(H[i]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
H = np.array([1,2,3,4,5])
tmp=[]
for i in range(len(H)-1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
H = np.array([1,2,3,4,5])
tmp=[]
for i in range(len(H)-1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

import numpy as np
N = int(input())
H = map(int, input().split())

tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

import numpy as np
N = int(input())
H = map(int, input().split())

tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

N = int(input())
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
#print(sum(tmp))
print(1)

N = int(input())
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
#print(sum(tmp))
print(1)

N = int(input())
N = 3
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
N = 3
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

import numpy as np
N = int(input())
H = np.array(map(int, input().split()))

tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

import numpy as np
N = int(input())
H = np.array(map(int, input().split()))

tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

N = int(input())
H = map(int, input().split())
#H = list(H)
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=H[i]), all(H[i]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = map(int, input().split())
#H = list(H)
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=H[i]), all(H[i]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
H = list(H)
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
H = list(H)
tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
tmp=[]
for i in range(len(H)-1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

import numpy as np
N = int(input())
H = raw_input().split()

tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

import numpy as np
N = int(input())
H = raw_input().split()

tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

N = int(input())
H = raw_input().split()


tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=H[i]), all(H[i]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = raw_input().split()


tmp=[]
for i in range(len(H)-1, -1, -1):
    tmp.append(all([all(H[:i]<=H[i]), all(H[i]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
H = np.array([1,2,3,4,5])
tmp=[]
for i in range(len(H)-1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

N = int(input())
H = np.array(map(int, input().split()))
H = np.array([1,2,3,4,5])
tmp=[]
for i in range(len(H)-1):
    tmp.append(all([all(H[:i]<=[H[i]]), all([H[i]]<=H[i+1:])]))
print(sum(tmp))

import numpy as np
N = int(input())
H = map(int, input().split())

tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

import numpy as np
N = int(input())
H = map(int, input().split())

tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

import numpy as np
N = int(input())
H = np.array(list(map(int, input().split())))
tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

import numpy as np
N = int(input())
H = np.array(list(map(int, input().split())))
tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

import numpy as np
N = int(input())
H = np.array(list(map(int, input().split())))
tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

import numpy as np
N = int(input())
H = np.array(list(map(int, input().split())))
tmp = []
for i in range(1, len(H)):
    tmp.append(all(H[:i]<=H[i]))
print(sum(tmp)+1)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted

Accepted

Accepted

Accepted