#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  string s = "abcdefghijklmnopqrstuvwxyz";
  while (n > 0) {
    for (int i = 0; i < k; i++) {
      if (n > 0) {
        cout << s[i];
        n--;
      }
    }
  }
}
