문제
풀이
#include <iostream>
#include <vector>
using namespace std;
void solve(void) {
int n; cin >> n;
vector<int> d(n);
for (int i=0; i<n; i++) cin >> d[i];
cout << d[0] / 3 << " " << d[1] - d[0] / 3 * 2 << " " << d[n-1] / 3;
}
int main(void) {
ios::sync_with_stdio(false);
cin.tie(nullptr);
solve();
return 0;
}