#include <iostream>
int main()
{
for (int aA = 0; aA <= 11; ++ aA) {
int dD=(aA==0)?12:(aA==1)?23:(aA==2||aA==3||aA==9)?34:(aA==4||aA==7)?45:(aA==5)?56:(aA==6)?67:(aA==8)?78:(aA==10)?89:90;
std::cout << dD << std::endl;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CiAgICBmb3IgKGludCBhQSA9IDA7IGFBIDw9IDExOyArKyBhQSkgewoKICAgICAgICBpbnQgZEQ9KGFBPT0wKT8xMjooYUE9PTEpPzIzOihhQT09Mnx8YUE9PTN8fGFBPT05KT8zNDooYUE9PTR8fGFBPT03KT80NTooYUE9PTUpPzU2OihhQT09Nik/Njc6KGFBPT04KT83ODooYUE9PTEwKT84OTo5MDsKCiAgICAgICAgc3RkOjpjb3V0IDw8IGREIDw8IHN0ZDo6ZW5kbDsKICAgIH0KfQ==