#Jelly, <s>9</s> 8 bytes

 ð+2X’¤¡€

[Try it online!](http://jelly.tryitonline.net/#code=w7ArMljigJnCpMKh4oKs&input=&args=WzEsIDIsIDMsIDRd+MQ)