3 задание:
ЯП: python
n = int(input())
temp = n
while n != 0:
if n > temp:
print("NO")
break
else:
print("YES ")
3 задание:
ЯП: python
n = int(input())
temp = n
while n != 0:
n = int(input())
if n > temp:
print("NO")
break
temp = n
else:
print("YES ")