#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, ans = 0;
  string s = "qwertyuiopasdfghjklzxcvbnm";
  scanf("%d%d", &n, &k);
  for (int i = 0; i < n;) {
    for (int j = 0; j < k; j++, i++) {
      cout << s[j];
      ans++;
      if (ans == n) {
        return 0;
      }
    }
  }
  cout << endl;
  return 0;
}
