Files
pythonProject/546456.py
Victor Alexandrovich Tsyrenschikov 55f7a49064 project
2025-11-21 00:03:35 +05:00

14 lines
175 B
Python

a1=int(input())
a=int(input())
if a==0:
a3=0
else:
a3=int(input())
s=0
while a3!=0:
if a1<a1 and a3<a1:
s+=1
a1=a
a=a3
a3=int(input())
print(s)