TeX source:
g(f(3))=g(3)=2