Complex sentence: Andrei was not a very educated man, as he had only attended four years of school, but knew how to read and write.
Split into simpler sentences: Andrei was not a very educated man. He had only attended four years of school but knew how to read and write.