Problem B: 选科组合

Problem B: 选科组合

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

已知物理、化学、生物、历史、地理、政治成绩分别为 lns="http://www.w3.org/1998/Math/MathML">alns="http://www.w3.org/1998/Math/MathML">blns="http://www.w3.org/1998/Math/MathML">clns="http://www.w3.org/1998/Math/MathML">dlns="http://www.w3.org/1998/Math/MathML">elns="http://www.w3.org/1998/Math/MathML">f

若从这六门科目中选择三门作为高考分数,则能得到的最高分是多少?

Input

单独一行:六个整数,分别表示六科成绩。
0≤a,b,c,d,e,f≤100

Output

  • 单个整数:表示选择三门课程形成组合的最高分

Sample Input Copy

90 88 85 93 75 87

Sample Output Copy

271

HINT

90+88+93=271