2021-12-02 10:26:14 -05:00
|
|
|
with open('input', 'r') as fp:
|
2021-12-02 10:33:35 -05:00
|
|
|
last = int(fp.readline())
|
2021-12-02 10:26:14 -05:00
|
|
|
|
|
|
|
increment = 0
|
|
|
|
decrement = 0
|
|
|
|
same = 0
|
|
|
|
|
|
|
|
for line in fp:
|
|
|
|
amt = int(line)
|
|
|
|
if(amt > last):
|
|
|
|
increment = increment + 1
|
|
|
|
elif(amt < last):
|
|
|
|
decrement = decrement + 1
|
|
|
|
else:
|
|
|
|
same = same + 1
|
|
|
|
|
|
|
|
last = amt
|
|
|
|
|
2021-12-02 10:33:35 -05:00
|
|
|
print "Increased: ", increment
|
|
|
|
print "Decreased: ", decrement
|
|
|
|
print " Remained: ", same
|