Surface gravity and effective temperature of the K5 subdwarf G 224-58 A and Arcturus from the fits to Ti and MgH lines