Global solution of the system of wave and Klein -- Gordon equations