#include <bits/stdc++.h>
using namespace std;
int main() {
  int m;
  cin >> m;
  int n = 0, c = 0;
  while (c < m) {
    n += 5;
    int nn = n;
    while (nn % 5 == 0) nn /= 5, c++;
  }
  if (c > m)
    cout << 0 << "\n";
  else
    cout << 5 << "\n"
         << n << " " << n + 1 << " " << n + 2 << " " << n + 3 << " " << n + 4
         << "\n";
  return 0;
}
