#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); for(int d=1; d<=25; d++){ int pos = 0; for(int i=0; i<26; i++){ int to = (pos+d)%26; if(d == 1) cout << (char)(pos+'A') << (char)(pos+'A') << "\n"; cout << (char)(pos+'A') << (char)(to+'A') << "\n"; pos = to; } } }