#include "../../include/aoc.hpp" #include using namespace std; ll mp(ll n, ll o) { return (n ^ o) % 16777216; } int main() { ios::sync_with_stdio(0); cin.tie(0); vector secrets; int n; while (cin >> n) { secrets.push_back(n); } ll count = 0; for (ll s : secrets) { for (int i = 0; i < 2000; i++) { s = mp(s * 64, s); s = mp(s / 32, s); s = mp(s * 2048, s); } count += s; } cout << count << '\n'; }