#include <bits/stdc++.h>
int main() {
  int a, b, c, n, i = 0, j = 0, t;
  scanf("%d", &n);
  while (5 * n - i * 5 > 0) {
    c = 0;
    t = 5 * (n - i);
    while (t) {
      c += t / 5;
      t = t / 5;
    }
    if (c == n) {
      printf("5\n");
      for (j = 0; j < 5; j++) printf("%d ", 5 * (n - i) + j);
      return 0;
    }
    if (c < n) {
      printf("0");
      return 0;
    }
    i++;
  }
}
