# [Pyth](https://github.com/isaacg1/pyth), 7 bytes @F#.cQ2 [Try it here!](https://pyth.herokuapp.com/?code=%40F%23.cQ2&input=%5B%28%221%22%2C%222%22%29%2C%28%221%22%2C%223%22%29%2C%28%221%22%2C%224%22%29%2C%28%222%22%2C%225%22%29%2C%28%223%22%2C%224%22%29%2C%28%224%22%2C%225%22%29%5D&debug=0)