#include using namespace std; using ll=long long; constexpr int MOD=998244353; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N; cin>>N; int f0=0,f1=1; for(int i=1;i<=N*N;i++){ if(f1%N==0){ cout<