SPOJ Exercises