#include <bits/stdc++.h>
#define MODE 1
#if MODE
#define debug(x) cout << #x << ": " << x << endl
#define log(x) cout << x << endl
#define test(x) x
#else
#define debug(x)
#define log(x)
#define test(x)
#endif
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
#define fi first
#define se second
#define X real()
#define Y imag()
using namespace std;
using ll = long long;
using ld = long double;
using uint = unsigned int;
using ull = unsigned long long;
using pii = pair<int, int>;
using pli = pair<ll, int>;
using pll = pair<ll, ll>;
using P = complex<ll>;
const ll M = 1000000007; // 998244353
double diff[24];
int cnt[24];
double avgdiff;
int avgcnt;
void day() {
int n = 36;
vector<double> v(n);
for (auto &i : v) cin >> i;
for (int i = 1; i < n; ++i) {
diff[(i-1) % 24] += v[i] - v[i-1];
++cnt[(i-1) % 24];
}
avgdiff += *max_element(v.begin(), v.begin()+12) - *min_element(v.begin(), v.begin()+12);
avgdiff += *max_element(v.begin()+24, v.begin()+36) - *min_element(v.begin()+24, v.begin()+36);
avgcnt += 2;
}
void precalc() {
for (int i = 0; i < 24; ++i) diff[i] /= cnt[i];
avgdiff /= avgcnt;
for (int i = 0; i < 24; ++i) cout << "diff[" << i << "] = " << diff[i] << ";\n";
cout << "avgdiff = " << avgdiff << ";\n";
}
void init() {
diff[0] = -0.022644;
diff[1] = -0.163462;
diff[2] = -0.278169;
diff[3] = -0.376600;
diff[4] = -0.456300;
diff[5] = -0.506288;
diff[6] = -0.513712;
diff[7] = -0.448325;
diff[8] = -0.335575;
diff[9] = -0.261112;
diff[10] = -0.213094;
diff[11] = -0.181088;
diff[12] = -0.130363;
diff[13] = -0.051612;
diff[14] = 0.118125;
diff[15] = 0.338363;
diff[16] = 0.472075;
diff[17] = 0.569262;
diff[18] = 0.593550;
diff[19] = 0.547150;
diff[20] = 0.479512;
diff[21] = 0.400562;
diff[22] = 0.280188;
diff[23] = 0.144525;
avgdiff = 4.960163;
}
void solve() {
vector<double> v(24);
for (auto &i : v) cin >> i;
double mul = (*max_element(v.begin(), v.end()) - *min_element(v.begin(), v.end())) / avgdiff;
int k = 6;
for (int i = 24; i < 36-k; ++i) {
double nx = v[i-1] + mul * diff[(i-1) % 24];
cout << nx << ' ';
v.push_back(nx);
}
for (int i = 36-k; i < 36; ++i) cout << "? ";
cout << '\n';
}
int main() {
cin.tie(0) -> sync_with_stdio(0);
cout << fixed << setprecision(6);
#if 0
int t = 0;
if (t == 0) cin >> t;
while (t--) day();
precalc();
#else
init();
int t = 0;
if (t == 0) cin >> t;
while (t--) solve();
#endif
return 0;
}