SP2189 MKPAIRS - Making Pairs

Description

The 2\*N (3

Input Format

\* Line 1: A single integer: N \* Lines 2..N+1: Line i+1 contains the single integer: A $ _{i} $ \* Lines N+2..2\*N+1: Line i+N+1 contains the single integer: B $ _{i} $

Output Format

\* Line 1: A single integer that represents the maximum amount of cash that FJ can earn.