Universal coefficient theorem for cohomology