Four teams compete in four sports, and the first, second, third, and fourth places in each event get 5, 3, 2, and 1 points respectively. The sum of the scores of each team's four games is calculated as the total score. For example, it is known that the total scores of each team are different, and team A has won three first places. What is the maximum number of points scored by the team with the fewest total points?
四个队进行四项体育比赛，每项比赛的第一、二、三、四名依次分别得5、3、2、1分．每队四项比赛的得分之和算作总分．如已知各队总分不相同，并且A队得了三项第一．问总分最少的队最多得多少分？
<gadget id="calculator">1 + 1 + 1 + 5</gadget>
<output>8</output>

<result>8</result>