Imagine that you are sitting in a chamber with your back to one wall. An electron beam, moving horizontally from back wall towards the front wall, is deflected by strong magnetic field to your right side. What is the direction of magnetic field?