For a particular class of integral operators $K$ we show that the quantity \[\ph:=\log \det (I+K)-\log \det (I-K)\] satisfies both the integrated mKdV hierarchy and the sinh-Gordon hierarchy. This proves a conjecture of Zamolodchikov.