#include <bits/stdc++.h>
using namespace std;
int main() {
  string s =
      "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrst"
      "uvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmn"
      "opqrstuvwxyz";
  int n, k, ost, cel;
  cin >> n >> k;
  ost = n % k;
  cel = n / k;
  vector<char> v;
  for (int i = 0; i < cel; i++) {
    for (int j = 0; j < k; j++) {
      v.push_back(s[j]);
    }
  }
  for (int i = 0; i < ost; i++) v.push_back(s[i]);
  for (int i = 0; i < v.size(); i++) cout << v[i];
  return 0;
}
