SPOJ 55 problems solved