Ukraine signs accord with Russia