#include "num.h"

Num::Num(int val, int mod): value(mod ? val % mod : val), modulo(mod) {}
Num::Num(const Num& other): value(other.value) {}