If you don't have a lot of stuff to lug around, hop on to the X9 and ride it to the last stop: Zoologischer Garten. Then get on one of the eastbound S lines that stops at Ostbahnhof. If I remember correctly, the end stations for the lines you want are Strausberg Nord, Ahrensfelde, Wartenberg, or Schoenefeld.