It does suck a bit that you were on the recieving end of this hazing, but towards the end of every school year, my friends and I would expect and prepare ourselves for this kind of thing. Not just to get hit with balloons and shaving cream, but also to dish out such, in retaliation. Just remember that's it was probably all in good fun, and I don't think (hope) they were targeting you in particular.
We used to modify the nozzles on cans of shaving cream so they could shoot ten or fifteen feet!