Aの中にstatic const int nankanokosuu = N;とか定義しておく