#include using namespace std; #define int long long signed main(){ int N; cin>>N; for(int i=1; i<=max(9LL,N); i++){ for(int j=0; j