f = open('input.txt', 'r') input = f.readlines() pre = 999999999999999999999999999999999999999999999 count = 0 for i in range(len(input)): input[i] = input[i].strip() input[i] = int(input[i]) print(len(input)) print(input) for x in input: if pre < x: count = count + 1 pre = x print(count)