#include <bits/stdc++.h>
const long long mod = 1e9 + 7;
void track(std::istream_iterator<std::string> it) {
  std::clog << "\b \b\b \b\n";
}
template <typename type, typename... types>
void track(std::istream_iterator<std::string> it, type arg,
           const types&... args) {
  std::clog << *it << " = " << arg << ", ";
  track(++it, args...);
}
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(false);
  std::cin.tie(NULL);
  int n, k;
  cin >> n >> k;
  string password;
  for (int j = 1; j <= (n / k); ++j) {
    for (int i = 0; i < k; ++i) {
      password.push_back((char)(i + 97));
    }
  }
  int rem = n % k;
  for (int i = 0; i < rem; ++i) {
    password.push_back((char)(i + 97));
  }
  cout << password << '\n';
  return 0;
}
