#include <bits/stdc++.h>
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
int arr[26];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, k;
  cin >> n >> k;
  string s = "abcdefghijklmnopqrstuvwxyz";
  string t = s.substr(0, k);
  int i = 0;
  string ans = "";
  while (i < n) {
    ans = ans + t;
    i += k;
  }
  ans = ans.substr(0, n);
  cout << ans;
  return 0;
}
