1 of 2

Convex, 10 bytes

_î\(@¥+¡p;

Try it online!