#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  char arr[k + 1];
  int count = 97, index = 0;
  for (int i = 0; i < k; i++) {
    arr[i] = (char)count;
    count += 1;
  }
  while (n--) {
    if (index == k - 1) {
      cout << arr[index];
      index = 0;
    } else {
      cout << arr[index];
      index += 1;
    }
  }
}
