===INPUT=== 6 2 3 3 5 9 6 7 4 ===OUTPUT=== 19 ===END===