#include <bits/stdc++.h>
using namespace std;
vector<int> v[100001];
int mod = 1000003;
int main() {
  long long n, k = 0, a[3001] = {0}, x, y;
  cin >> n;
  x = 5;
  while (n > 0) {
    y = x;
    k = 0;
    while (y % 5 == 0) {
      y = y / 5;
      k++;
    }
    n = n - k;
    x = x + 5;
  }
  if (n == 0)
    cout << 5 << endl
         << x - 5 << ' ' << x - 4 << ' ' << x - 3 << ' ' << x - 2 << ' '
         << x - 1;
  else
    cout << 0;
}
