Both. My e-reader takes epubs, though I'm pretty sure that Calibre could convert mobi to epub. However, I've no idea how to download a mobi file from Amazon and strip the DRM, and it's not important enough to me to figure out whether it's even possible.
no subject
And also I avoid Amazon.