#839 two convex sequences (easy)