SPOJ Added codes