ABC is a triangle, right angled at B. If BCDE is a square on the side BC and ACFG is a square on AC, then AD = .