GCJ14/qual problem A and B (Both small and large I/P)