During the war Romania remained neutral for the first two years , after which it joined the allies ; however , it was very quickly defeated and overrun by the Central Powers , and in total it lost over 600 thousand people as a direct result of the war .