#include <bits/stdc++.h>
using namespace std;
vector<int> e;
int solve(int x) {
  int res = 0;
  while (x % 5 == 0) {
    x /= 5;
    res++;
  }
  return res;
}
int main() {
  int n;
  cin >> n;
  int ans = 0, i = 5;
  while (ans <= n) {
    ans += solve(i);
    if (ans == n) e.push_back(i);
    i++;
  }
  cout << e.size() << endl;
  for (int i = 0; i < (int)e.size(); i++) {
    cout << e[i];
    if (i == (int)e.size() - 1)
      cout << endl;
    else
      cout << " ";
  }
  return 0;
}
