#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  std ::ios ::sync_with_stdio(false);
  int arr[26];
  char x = 'a';
  for (int i = 0; i < 26; i++) {
    arr[i] = x;
    x++;
  }
  int n, k;
  cin >> n >> k;
  string second = "";
  for (int i = 0; i < k; i++) {
    second += arr[i];
  }
  int j = 0;
  for (int i = 0; i < n; i++) {
    cout << second[j];
    j++;
    if (j >= second.size()) j = 0;
  }
  return 0;
}
