#include #include #include typedef unsigned data; static inline data powM(data x, unsigned e) { data y = 1; for(unsigned i=0; i