Naive method of finding H(f)