In the game Battlegrounds, a player wears a helmet and a vest to protect the head and the body.
The map holds many helmets and vests, and each one has its own defense value. A player can wear at most one helmet and at most one vest. Gyeongsu wants to win, so he is willing to spend the time it takes to pick up the best helmet and the best vest and reach the highest defense.
Given the defense values of the helmets and the vests on the map, find the largest defense Gyeongsu can reach.
