Gluon condensate in charmonium sum rules with three-loop corrections