1 2 3 4 5 6
from itertools import tee from sys import stdin old, new = tee(map(int, stdin.read().strip().split())) next(new) print(sum(o < n for o, n in zip(old, new)))