#include <cstdlib>
#include <fstream>
#include <stdexcept>
#include <cstring>
using std::runtime_error;
using std::memcpy;