Ukraine is exploring the use of Baltic Sea ports for grain exports, the agriculture ministry said on Wednesday, following a similar move by Russia as both sides seek alternatives to Black Sea routes disrupted by their war.