#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;
};
alignas(SensorPacket) uint8_t buffer[(sizeof(SensorPacket)) * 3];
int main() {
int index, id, value;
cin >> index >> id >> value;
// Write your pool construction code here
SensorPacket *packet = new(buffer + (sizeof(SensorPacket)*index)) SensorPacket{id, value};
cout << packet->id << " " << packet->value;
packet->~SensorPacket();
return 0;
}