first had come terrible ivan and his rival batory in the 1670s and 1680s , then the swedes in 1708 , followed by napoleon in 1812 , germans in 1916 , battling poles and russians in 1920 and 1921 , soviets conquering poland in 1939 , nazis invading russia in 1941 , and finally soviets throwing out the germansand poles , too , as it turned out -- in 1944 .