-
Notifications
You must be signed in to change notification settings - Fork 0
/
255A.cpp
91 lines (78 loc) · 1.63 KB
/
255A.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#include <iostream>
#include <algorithm>
#include <vector>
#define MOD 1000000009
#include <list>
#include <map>
#include <set>
#include <queue>
#include <cstring>
#include <cstdlib>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#define ll long long
#define REP(i,a,n) for(i=a;i<n;i++)
#define MIN(a,b) a<b?a:b
#define MAX(a,b) a>b?a:b
#define REPP(i,a,n) for(i=a;i<=n;i++)
#include <cmath>
#define PI pair<int,int>
#include <cstdlib>
#define inf 1000007
#include <ctime>
#define exit return 0
using namespace std;
//int dp[1111][31111], h[N], c[N], jam[N], pas, NN, X;
int i, j, j3, k, KK, R, NN;
//vector<int>ans;
//http://www.spoj.com/problems/GREED/
//http://www.spoj.com/problems/TAXI/
//http://www.spoj.com/problems/IM/
//https://apps.topcoder.com/wiki/display/tc/SRM+578
//https://apps.topcoder.com/wiki/display/tc/TCO+2013+Round+2C
//https://apps.topcoder.com/wiki/display/tc/SRM+579#TravellingPurchasingMan
/*
string in;
bool MP[720];
int cap[720][720];*/
const int N = 222222;
ll in1[N], in2[N];
double duration;
int n, m, a, b, idi, X;
//ll rmq[N][21][2]
string s;
ll pas;
int R1, R2;
set<int>sz;
int dp[2][33][33][33][2], T, res;
int chest, bic, bck;
int main(){
cin >> NN;
REP(i, 1, NN + 1){
cin >> res;
if (i % 3 == 1){
chest += res;
}
else if (i % 3 == 2)bic += res;
else bck += res;
}
if (chest > bic&&chest > bck){
cout << "chest" << endl;
}
else if (bic > chest&&bic > bck){
cout << "biceps" << endl;
}
else{
cout << "back" << endl;
}
exit;
}