#include <algorithm>
#include <iostream>
using namespace std;
extern int w,wei; //本来想在mynum里static的,但不知道怎么回事只有这样才可以
class mynum{
friend mynum operator*(const mynum&,const mynum&);
friend ostream& operator<<(ostream&,const mynum&);
public:
mynum(int x=0){ fill(Arr,Arr+27,0); Arr[1]=x; }
void operator+=(const mynum&);
void operator*=(const mynum& rhs) //为了速度只能不择手段了
{ *this=(*this)*rhs; }
void operator++();
private:
long Arr[26];
};