State of the inner heliosphere as given by the G index of interplanetary scintillation and the Dst index of geomagnetic activity