#include "message.h"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
#define all(x) x.begin(),x.end()
#ifdef MARCO
#define infof(str,...) do{ fprintf(stderr, str"\n", ##__VA_ARGS__);} while(0);
#define infor(str,...) do{ fprintf(stderr, str, ##__VA_ARGS__);} while(0);
#else
#define infof(str, ...)
#define infor(str, ...)
#endif
#define pii pair<int, int>
#define pll pair<long long, long long>
#define fi first
#define se second
void send_message(std::vector<bool> M, std::vector<bool> C) {
M.resize(1024);
for(int i=0; i<64; i++) {
vector<bool> q(31);
if(M[i] == 1) q=vector<bool>(31, 1);
send_packet(q);
}
}
std::vector<bool> receive_message(std::vector<std::vector<bool>> R) {
vector<bool> ans(64);
for(int i=0; i<64; i++) {
int c = 0;
for(int j=0; j<31; j++) c += R[i][j];
if(c > 15) ans[i] = 1;
}
return ans;
}