sum of whose squares is 365.