The assignment is to have the numbers displayed and saved to a file, yes.
As for the hsa package, I'm not sure if we need to have it. I doubt it, though.
Edit: Awesome man, your suggestion to use Outputstream instead of Input worked perfectly.
Thank you, and everyone else who helped me...