#include <iostream>
using namespace std;
// 학생 점수의 총 합
int main(void)
{
int score[5][2];
int total[2] = {0, };
int i;
for(i = 0; i < 5; i++)
{
cout << i + 1 << "번 학생의 수학, 영어 점수 : ";
cin >> score[i][0] >> score[i][1];
}
for(i = 0; i < 5; i++)
{
total[0] += score[i][0];
total[1] += score[i][1];
}
cout << "\n\n5명의 수학 점수 합계 : " << total[0] << endl;
cout << "5명의 영어 점수 합계 : " << total[1] << endl;
return 0;
}