#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, cnt = 0, pz = 0, mx = 0;
  string s;
  cin >> a >> b;
  for (int i = 0; i < a; i++) {
    for (int j = 0; j < b; j++) {
      s += j + 97;
    }
  }
  for (int i = 0; i < a; i++) cout << s[i];
}
