Hecke's integral formula