Working on problems from Sphere Online Judge