#include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; for(int i=0;i<n;i++) { cout<<m*i; if(m*i>9) { i=i+1; } } }