#include <iostream>
#include <cstdint>
#include <new>
#include <type_traits>
using namespace std;
// Write your struct and placement new logic here
struct SensorPacket{
int id;
int value;
};
struct Slot {
alignas(SensorPacket) std::byte data[sizeof(SensorPacket)];
};
Slot mem_pool[3];
int main() {
int index, id, value;
cin >> index >> id >> value;
// Write your pool construction code here
SensorPacket* spp = new (&mem_pool[index]) SensorPacket;
spp->id = id;
spp->value = value;
cout<<spp->id<<" "<<spp->value;
spp->~SensorPacket();
return 0;
}