In a series of agreements between 1772 and 1795 , Russia , Prussia , and Austria partitioned Poland among themselves .