first up was the signing of the new energy treaty with president medved of the russian federation , with a mutual pledge to drastically reduce both russian and nato troops along the latvian and polish borders , respectively .