Complex sentence: Ramanujan was plagued by health problems throughout his life, while living in a country far away from home and obsessively involved with his mathematics.
Split into simpler sentences: Ramanujan was plagued by health problems throughout his life. Now he was living in a country far away from home, and obsessively involved with his mathematics.