#include <bits/stdc++.h>
int main() {
  long m, k = 0, j = 0;
  long long n;
  std::cin >> m;
  for (n = 5;; n += 5) {
    long long number = n;
    while (number % 5 == 0) {
      number /= 5;
      j++;
    }
    if (j == m) {
      k = 5;
      break;
    }
    if (j > m) break;
  }
  std::cout << k << std::endl;
  for (long i = 0; i < k; i++) std::cout << n++ << " ";
  return 0;
}
