Ukrainian president, German chancellor discuss war, grain deal