#include<bits/stdc++.h>
using namespace std;
int main(){
unordered_map<float, float> m;
m[-31] = -31.9;
m[-35.6] = -36.2;
m[-33.8] = -35.7;
m[-34.2] = -33.4;
m[-34.3] = -34.3;
m[-31.9] = -32.2;
m[-32.9] = -33.7;
m[31.6] = 31.5;
m[-29] = -29.4;
m[33.1] = 31.9;
m[31] = 29.4;
m[-33.7] = -33.5;
m[32.7] = 32.2;
m[32.6] = 32.5;
m[-31.1] = -32;
m[-32.1] = -32.2;
m[-30] = -31.4;
m[-31.4] = -31.5;
m[-29.4] = -29.3;
m[-23] = -23.8;
m[-31.5] = -32.2;
m[-31.6] = -31.3;
m[-31.2] = -31.7;
m[-30.7] = -30.4;
m[-28.2] = -28.6;
m[-27.7] = -27.6;
m[-29.6] = -30.4;
m[-29.7] = -28.9;
m[-29.5] = -29.7;
m[-29.8] = -29.8;
m[29.5] = 28.9;
m[30.9] = 30.2;
m[30.6] = 27.5;
m[-31.8] = -29.3;
m[-30.8] = -30.2;
m[-33.5] = -34;
m[-32.7] = -31.4;
m[-28.4] = -28.4;
m[-30.9] = -32;
m[-30.6] = -30.9;
m[-28.1] = -28.1;
m[-23.8] = -23.4;
m[-22.6] = -22.5;
m[28.4] = 27.9;
m[-33.1] = -31.9;
m[32.1] = 31.1;
m[31.7] = 31.2;
m[-36.7] = -35.6;
m[28.7] = 27.8;
m[-24.5] = -24.5;
m[-25.1] = -24.6;
m[-24.9] = -25;
m[29.7] = 28.9;
m[30] = 29.8;
m[-22.7] = -23.3;
m[-25.2] = -25.1;
m[-24.8] = -25.1;
m[-23.1] = -23.7;
m[-20.8] = -20.8;
m[-22.5] = -22.6;
m[-26.8] = -26.9;
m[-28.8] = -28;
m[-27.9] = -28.2;
m[-31.7] = -31.2;
m[-23.4] = -23.2;
m[-21.7] = -21.5;
m[-21.3] = -21.6;
m[-21.1] = -20.9;
m[-21.2] = -21.4;
m[-19] = -19.3;
m[30.8] = 30.3;
m[-20.7] = -21;
m[-19.2] = -19.2;
m[-26.9] = -26.5;
m[-13.3] = -13.4;
m[-13.4] = -13.6;
m[21.7] = 20.9;
m[-13.9] = -14.2;
m[-15.4] = -15.8;
m[3.3] = 3.1;
m[-3.1] = -3.3;
m[-24.3] = -24.3;
m[23.4] = 22.7;
m[15.3] = 14.9;
m[3.9] = 3.7;
m[19] = 18.5;
m[-10.9] = -11.2;
m[-33] = -32.4;
m[-15.8] = -16;
m[-16] = -16.3;
m[-17.3] = -17.8;
m[-29.3] = -29.6;
m[-16.3] = -16.6;
m[-3.9] = -4.1;
m[-3.7] = -3.8;
m[-15.7] = -15.9;
m[7.5] = 7.2;
m[26.4] = 25.6;
m[5.8] = 5.5;
m[14.6] = 14.1;
m[22.2] = 21.4;
m[22] = 21.3;
m[-9.7] = -9.9;
m[31.5] = 32.2;
m[-8.3] = -8.6;
m[-15.6] = -15.7;
m[5.1] = 4.8;
m[-32.8] = -32;
m[18.2] = 17.6;
m[16.6] = 16;
m[-36.5] = -36.7;
m[7.9] = 7.4;
m[2.3] = 2.1;
m[2.1] = 2;
m[13.9] = 13.5;
m[2.2] = 2;
m[-14.9] = -15.1;
m[23.1] = 22.4;
m[-6.7] = -6.9;
m[2.5] = 2.3;
m[25.1] = 24.5;
m[26.1] = 25.5;
m[-23.2] = -23.1;
m[-27.6] = -27.4;
m[2.7] = 2.5;
m[5.7] = 5.4;
m[-2.9] = -3.1;
m[-0.4] = -0.6;
m[5.4] = 5.1;
m[-1.3] = -1.5;
m[-9.1] = -9.2;
m[28.6] = 27.9;
m[-10.2] = -10.3;
m[-19.1] = -19.3;
m[-6.6] = -6.8;
m[-32.2] = -32.4;
m[-10.3] = -10.4;
m[9.9] = 9.5;
m[11.9] = 11.5;
m[-9.4] = -9.8;
m[-6.4] = -6.6;
m[-27] = -27;
m[16.2] = 15.6;
m[-9.9] = -10.3;
m[31.1] = 30.8;
m[-2.4] = -2.5;
m[6.5] = 6.1;
m[14.5] = 14.1;
m[11.5] = 11;
m[-4.6] = -4.7;
m[-5.6] = -5.8;
m[16.4] = 15.8;
m[-4] = -4.2;
m[0.6] = 0.5;
m[18.9] = 18.2;
m[0.9] = 0.8;
m[32.5] = 32.7;
m[-1.6] = -1.7;
m[29.6] = 29.3;
m[14] = 13.6;
m[7.6] = 7.2;
m[-34] = -34.2;
m[-26.5] = -25.8;
m[-1.8] = -1.9;
m[15.5] = 15;
m[12.4] = 12;
m[17.1] = 16.6;
m[17.4] = 16.8;
m[-1.5] = -1.6;
m[19.1] = 18.5;
m[-9.8] = -9.9;
m[23.6] = 22.8;
m[30.7] = 30;
m[19.7] = 19.1;
m[-20.5] = -20.5;
m[8.6] = 8.3;
m[11.6] = 11.1;
m[8.4] = 8;
m[-22.1] = -22.2;
m[-0.5] = -0.6;
m[28.5] = 27.6;
m[15.8] = 15.3;
m[9] = 8.5;
m[-7.8] = -7.9;
m[-10.5] = -10.6;
m[30.1] = 29.6;
m[17.5] = 16.9;
m[-26.2] = -26.4;
m[9.2] = 8.8;
m[11.1] = 10.7;
m[-13.8] = -14.1;
m[15] = 14.5;
m[-2.1] = -2.3;
m[12.2] = 11.7;
m[-16.4] = -16.8;
m[17] = 16.5;
m[-0.6] = -0.7;
m[4.2] = 4;
m[13.6] = 13.2;
m[-25.9] = -26.1;
m[4.4] = 4.1;
m[3.8] = 3.6;
m[0.4] = 0.3;
m[8.5] = 8.2;
m[8.9] = 8.5;
m[-4.4] = -4.6;
m[3] = 2.7;
m[-10.8] = -10.9;
m[17.9] = 17.3;
m[-1.2] = -1.3;
m[6.1] = 5.8;
m[18.6] = 18;
m[-11.3] = -11.6;
m[-31.3] = -31.1;
m[-24.6] = -24.3;
m[21.1] = 20.4;
m[-28.6] = -28.9;
m[4.9] = 4.6;
m[-7] = -7.3;
m[10] = 9.6;
m[3.7] = 3.5;
m[-35.7] = -34.6;
m[15.9] = 15.4;
m[27.8] = 27.3;
m[-2] = -2.2;
m[8.2] = 7.8;
m[31.3] = 31;
m[20.6] = 20;
m[-1] = -1.1;
m[-28.3] = -28.4;
m[-13.5] = -13.5;
m[17.2] = 16.7;
m[31.4] = 31;
m[6.3] = 5.9;
m[17.6] = 17.1;
m[18] = 17.3;
m[24.1] = 23.4;
m[-2.8] = -2.9;
m[12.3] = 11.9;
m[-8.5] = -8.7;
m[4] = 3.8;
m[-7.7] = -7.8;
m[-8.1] = -8.3;
m[22.6] = 21.9;
m[-21.5] = -21.3;
m[-6.2] = -6.4;
m[19.2] = 18.6;
m[-30.2] = -29.5;
m[3.1] = 2.9;
m[-18.5] = -18.6;
m[-1.4] = -1.6;
m[-7.2] = -7.5;
m[0] = -0.1;
m[29.3] = 29;
m[4.5] = 4.2;
m[-10.1] = -10.4;
m[22.8] = 22;
m[19.3] = 18.7;
m[18.8] = 18.1;
m[18.4] = 17.9;
m[19.6] = 19;
m[-0.3] = -0.4;
m[-17.6] = -17.7;
m[27.2] = 26.6;
m[-7.3] = -7.6;
m[0.8] = 0.7;
m[0.2] = 0.1;
m[8.1] = 7.6;
m[23.3] = 22.6;
m[-25.3] = -25.8;
m[3.2] = 3;
m[18.5] = 17.9;
m[5] = 4.7;
m[10.2] = 9.8;
m[-16.5] = -16.8;
m[-18.4] = -18.6;
m[10.7] = 10.3;
m[-1.1] = -1.3;
m[0.7] = 0.6;
m[-21.9] = -21.9;
m[11.8] = 11.4;
m[19.9] = 19.3;
m[-5] = -5.2;
m[-0.9] = -1;
m[-9.3] = -9.4;
m[0.1] = -0.1;
m[-0.2] = -0.3;
m[12] = 11.6;
m[-30.5] = -30.9;
m[14.9] = 14.4;
m[-9.2] = -9.4;
m[-34.6] = -31.9;
m[14.3] = 13.9;
m[2.8] = 2.6;
m[-36.4] = -36.5;
m[-17.8] = -18.2;
m[-15.9] = -16.3;
m[6.2] = 5.9;
m[-10.6] = -10.9;
m[13.2] = 12.8;
m[-4.1] = -4.3;
m[32.2] = 31.7;
m[14.2] = 13.8;
m[-9.5] = -9.8;
m[-3.8] = -4;
m[-32] = -32.2;
m[27] = 26.6;
m[-5.3] = -5.4;
m[12.9] = 12.5;
m[-0.8] = -0.9;
m[8.3] = 7.9;
m[-18.1] = -17.8;
m[-6.1] = -6.3;
m[20.7] = 19.9;
m[16.1] = 15.6;
m[19.8] = 19;
m[5.9] = 5.6;
m[11] = 10.5;
m[30.2] = 29.4;
m[9.3] = 8.9;
m[-33.6] = -33.8;
m[16.9] = 16.4;
m[9.1] = 8.8;
m[26.7] = 26;
m[28.1] = 27.3;
m[-11.9] = -12.2;
m[15.1] = 14.7;
m[8.8] = 8.4;
m[-25.7] = -25.5;
m[-20.2] = -20.6;
m[26.3] = 25.2;
m[13] = 12.6;
m[-27.1] = -26.9;
m[7] = 6.7;
m[1.5] = 1.3;
m[-4.8] = -5;
m[25.8] = 25.3;
m[-2.2] = -2.3;
m[13.4] = 13;
m[-26.3] = -26;
m[1.3] = 1.1;
m[-26.6] = -26.7;
m[-16.6] = -16.8;
m[1.9] = 1.7;
m[22.4] = 21.8;
m[20.8] = 20.1;
m[21.4] = 20.7;
m[25.5] = 24.9;
m[8.7] = 8.4;
m[29.9] = 29.5;
m[-11.6] = -11.8;
m[23.5] = 22.9;
m[10.4] = 10;
m[4.7] = 4.4;
m[1] = 0.9;
m[21] = 20.3;
m[2] = 1.8;
m[1.4] = 1.2;
m[-21.8] = -22;
m[18.3] = 17.7;
m[-4.5] = -4.7;
m[10.1] = 9.7;
m[1.7] = 1.5;
m[24] = 23.3;
m[-10] = -10.2;
m[-2.6] = -2.8;
m[-20.6] = -20.6;
m[-21.6] = -21.7;
m[-4.9] = -5.1;
m[-33.4] = -33.2;
m[-4.2] = -4.4;
m[-5.1] = -5.3;
m[7.2] = 6.8;
m[-5.9] = -6.2;
m[-17.2] = -17.2;
m[-7.5] = -7.7;
m[-12.6] = -12.9;
m[6] = 5.7;
m[-8] = -8.1;
m[15.4] = 14.9;
m[-22.4] = -22.3;
m[12.8] = 12.3;
m[12.7] = 12.3;
m[-32.6] = -32.5;
m[-12.4] = -12.6;
m[22.1] = 21.5;
m[4.6] = 4.3;
m[-7.6] = -7.7;
m[-13.6] = -14.1;
m[-5.2] = -5.3;
m[-3.3] = -3.5;
m[19.5] = 18.8;
m[20] = 19.4;
m[-29.1] = -29.3;
m[-3.5] = -3.7;
m[-3] = -3.2;
m[-9] = -9.1;
m[7.8] = 7.4;
m[23.2] = 22.5;
m[4.1] = 3.9;
m[-30.1] = -29.1;
m[20.9] = 20.2;
m[-24.4] = -25;
m[4.8] = 4.5;
m[17.3] = 16.7;
m[27.4] = 26.3;
m[13.3] = 12.9;
m[-28.9] = -28.6;
m[-17.4] = -17.7;
m[21.6] = 20.9;
m[-17.1] = -17.2;
m[11.2] = 10.8;
m[-4.3] = -4.5;
m[9.8] = 9.5;
m[14.8] = 14.4;
m[9.5] = 9.1;
m[23.8] = 23.2;
m[1.1] = 0.9;
m[-30.3] = -30.2;
m[13.5] = 13.1;
m[1.8] = 1.6;
m[-11.1] = -11.5;
m[24.4] = 23.7;
m[7.1] = 6.7;
m[6.7] = 6.4;
m[-0.1] = -0.2;
m[5.5] = 5.2;
m[11.7] = 11.2;
m[-18.3] = -18.5;
m[16.5] = 16;
m[-17.7] = -17.9;
m[21.9] = 21.2;
m[-3.2] = -3.3;
m[15.7] = 15.2;
m[-14] = -14.1;
m[25.7] = 24.9;
m[-6.3] = -6.5;
m[10.3] = 9.9;
m[-5.7] = -5.9;
m[2.6] = 2.4;
m[11.3] = 10.8;
m[9.4] = 9;
m[12.5] = 12.1;
m[6.4] = 6.1;
m[15.6] = 15.2;
m[-12.8] = -12.9;
m[7.3] = 6.9;
m[20.5] = 20;
m[15.2] = 14.7;
m[20.3] = 19.8;
m[-3.6] = -3.8;
m[20.2] = 19.7;
m[17.8] = 17.2;
m[-5.8] = -6;
m[21.3] = 20.6;
m[-18.2] = -18.5;
m[-18.7] = -19;
m[-14.4] = -15;
m[-14.8] = -15.2;
m[-14.1] = -14.3;
m[-28.7] = -29.1;
m[3.6] = 3.4;
m[1.6] = 1.4;
m[-8.6] = -8.9;
m[-6.5] = -6.8;
m[-6.9] = -7.2;
m[-5.5] = -5.7;
m[-24] = -24.2;
m[0.5] = 0.4;
m[-10.7] = -11;
m[-16.1] = -16.3;
m[-29.2] = -28.9;
m[-30.4] = -30.5;
m[5.6] = 5.4;
m[-14.3] = -14.7;
m[10.5] = 10;
m[-11.7] = -12;
m[-15.2] = -15.4;
m[26.2] = 25.3;
m[14.4] = 13.9;
m[19.4] = 18.7;
m[17.7] = 17.1;
m[16.8] = 16.3;
m[-22.3] = -22.6;
m[-16.7] = -17;
m[7.4] = 7;
m[5.3] = 5;
m[10.6] = 10.2;
m[-12.9] = -13.1;
m[-11.4] = -11.8;
m[0.3] = 0.2;
m[18.7] = 18.1;
m[-13] = -13.1;
m[-32.4] = -32.6;
m[2.4] = 2.2;
m[-13.2] = -13.4;
m[3.5] = 3.3;
m[25.9] = 25.2;
m[4.3] = 4.1;
m[7.7] = 7.4;
m[6.8] = 6.5;
m[24.5] = 23.6;
m[5.2] = 4.9;
m[13.7] = 13.3;
m[-14.5] = -14.8;
m[16.3] = 15.8;
m[6.6] = 6.2;
m[-25] = -25;
m[13.8] = 13.3;
m[-21.4] = -21.5;
m[-28] = -27;
m[10.9] = 10.5;
m[-2.7] = -2.9;
m[-5.4] = -5.6;
m[-12] = -12.1;
m[14.1] = 13.6;
m[-22] = -21.7;
m[21.5] = 20.8;
m[6.9] = 6.6;
m[23] = 22.4;
m[-8.2] = -8.5;
m[9.6] = 9.2;
m[-36.2] = -34.6;
m[-13.7] = -13.8;
m[1.2] = 1;
m[25.3] = 24.5;
m[-2.3] = -2.5;
m[-0.7] = -0.8;
m[-24.2] = -24.9;
m[-25.8] = -26.2;
m[-26.1] = -26;
m[-26.7] = -26.7;
m[-25.4] = -25.6;
m[-27.5] = -27.4;
m[-23.7] = -24.2;
m[-24.1] = -24.2;
m[-34.7] = -35.2;
m[-9.6] = -9.8;
m[-20.1] = -20.2;
m[-23.6] = -24.2;
m[-8.9] = -9.1;
m[-19.6] = -20.1;
m[-19.4] = -19.5;
m[12.6] = 12.1;
m[16] = 15.5;
m[-3.4] = -3.6;
m[-26] = -26.1;
m[-11.8] = -12;
m[-8.8] = -9.1;
m[-12.1] = -12.4;
m[28.2] = 27;
m[12.1] = 11.7;
m[26.8] = 26.1;
m[-8.4] = -8.7;
m[-19.5] = -19.6;
m[20.1] = 19.5;
m[-15.3] = -15.5;
m[23.9] = 23.1;
m[-27.3] = -27.7;
m[28.9] = 28.3;
m[29.4] = 28.6;
m[-20.4] = -20.4;
m[29] = 28.4;
m[-16.2] = -16.2;
m[-12.3] = -12.6;
m[25.2] = 24.5;
m[-15.5] = -15.9;
m[-7.4] = -7.6;
m[10.8] = 10.4;
m[-7.9] = -8.1;
m[30.3] = 30.1;
m[-18] = -18.2;
m[-14.2] = -14.1;
m[-11.5] = -11.9;
m[-16.8] = -17.1;
m[-15] = -15.2;
m[26.6] = 25.5;
m[-12.7] = -13.1;
m[-4.7] = -4.9;
m[-14.6] = -14.9;
m[20.4] = 19.8;
m[30.4] = 30;
m[8] = 7.6;
m[24.2] = 23.5;
m[21.8] = 21.2;
m[-22.8] = -22.7;
m[22.7] = 22;
m[-22.2] = -22.2;
m[-23.5] = -23.7;
m[29.1] = 28.5;
m[-24.7] = -24.3;
m[-17.9] = -18.1;
m[-26.4] = -27;
m[3.4] = 3.2;
m[-29.9] = -29.3;
m[-25.5] = -25.7;
m[9.7] = 9.3;
m[-6] = -6.2;
m[29.2] = 28.7;
m[16.7] = 16.1;
m[-13.1] = -13.2;
m[-6.8] = -7;
m[-19.7] = -19.7;
m[-21] = -21;
m[-8.7] = -9;
m[-11] = -11.3;
m[-19.9] = -20.2;
m[-18.9] = -18.7;
m[27.5] = 26.7;
m[26.5] = 25.4;
m[-2.5] = -2.7;
m[30.5] = 30.1;
m[-27.2] = -26.6;
m[22.3] = 21.5;
m[22.5] = 21.7;
m[-1.9] = -2.1;
m[-16.9] = -17.2;
m[-11.2] = -11.8;
m[21.2] = 20.5;
m[-18.8] = -19;
m[-17.5] = -17.8;
m[28.3] = 27.7;
m[-25.6] = -25.9;
m[23.7] = 22.7;
m[13.1] = 12.6;
m[-7.1] = -7.3;
m[-23.3] = -23.1;
m[-12.2] = -12.4;
m[24.7] = 23.9;
m[14.7] = 14.2;
m[24.9] = 24.3;
m[24.8] = 24.1;
m[27.1] = 26.5;
m[22.9] = 22.2;
m[-10.4] = -10.6;
m[-15.1] = -15.7;
m[25.6] = 24.6;
m[25] = 24.4;
m[-12.5] = -12.9;
m[-17] = -17.3;
m[-28.5] = -28;
m[24.6] = 23.9;
m[-27.8] = -27.4;
m[-23.9] = -23.8;
m[27.6] = 27.1;
m[25.4] = 24.6;
m[-14.7] = -14.8;
m[27.9] = 27.6;
m[-1.7] = -1.8;
m[27.7] = 27.3;
m[26.9] = 25.9;
m[-18.6] = -19.1;
m[28.8] = 27.5;
m[29.8] = 29.6;
m[28] = 27;
m[2.9] = 2.7;
m[18.1] = 17.5;
m[27.3] = 26.7;
m[24.3] = 23.6;
m[31.2] = 30.5;
m[26] = 25.4;
m[-32.5] = -31.9;
m[-20.3] = -20.5;
m[11.4] = 10.9;
m[-19.3] = -19.4;
m[-27.4] = -27.7;
m[-19.8] = -20.1;
m[-20] = -20.5;
m[-20.9] = -20.9;
m[-22.9] = -23.4;
int n;
cin >> n;
int z = 12;
while(n--){
float t[24];
for(int i = 0; i < 24; i++) cin >> t[i];
/* float x = t[23];
for(int i = 0; i < 12; i++){
x = m[x];
cout << x << " ";
} */
float x = t[23];
for(int i = 0; i < z; i++){
x = m[x];
cout << x << " ";
}
for(int i = 0; i < 12-z; i++) cout << "? ";
}
}