28237
 13190
 39914
 81367
 8554
 61106
 67448
 39004
 22308
 16054
 71468
 60501
 100
 300
 59632
 90783
 5611
 1000
 69475
 69753
 10
 5
 582
 8
 36961
 5071
 20
 53213
 92775
 28738
 100000
 92280
 37944
 9
 2627
 7
 3

1028306548 224346172 2054738392 8539207488 94344524 4816051228 5867563092 1962150044 641839188 332342852 6587875268 4721174212 12600 115440 4586497300 10630118936 40580456 1286328 6225539588 6275533596 92 8 434692 52 1762017168 33141852 440 3652070664 11101694484 1065137992 12898363344 10983871880 1856988304 64 8885348 28 0
#include <bits/stdc++.h>
using namespace std;
long long modex(long long a, long long b, long long m) {
  if (b == 0) return 1;
  long long ans = a;
  long long save = 1;
  while (b != 1) {
    if (b % 2 == 1) {
      save *= ans;
      save %= m;
    }
    ans *= ans;
    ans %= m;
    b /= 2;
  }
  return (ans * save) % m;
}
long long mx, my;
void solve(long long a, long long b) {
  if (b == 0) {
    mx = 1;
    my = 0;
    return;
  }
  solve(b, a % b);
  long long x1 = mx;
  long long y1 = my;
  mx = y1;
  my = x1 - (a / b) * y1;
}
long long mi(long long x, long long m) {
  solve(x, m);
  return (mx + m) % m;
}
vector<long long> p;
vector<bool> prime;
void seive(int n) {
  prime.resize(n + 1);
  for (int i = 2; i < prime.size(); i++) prime[i] = 1;
  for (int i = 2; i * i <= n; i++) {
    if (!prime[i]) continue;
    int j = i + i;
    while (j <= n) {
      prime[j] = 0;
      j += i;
    }
  }
  for (int i = 2; i <= n; i++)
    if (prime[i]) p.push_back(i);
}
vector<long long> lpd;
void lpdgen(int n) {
  prime.resize(n + 1);
  lpd.resize(n + 1, 0);
  for (int i = 2; i <= n; i++) prime[i] = 1;
  for (int i = 2; i * i <= n; i++) {
    if (!prime[i]) continue;
    int j = i + i;
    while (j <= n) {
      prime[j] = 0;
      if (lpd[j] == 0) lpd[j] = i;
      j += i;
    }
  }
  for (int i = 2; i <= n; i++)
    if (prime[i]) lpd[i] = i;
}
template <typename T>
vector<T> compfactor(T x) {
  vector<T> ret;
  while (x != 1) {
    ret.push_back(lpd[x]);
    x /= lpd[x];
  }
  return ret;
}
template <typename T>
vector<T> pfactor(T x) {
  vector<T> ret;
  while (x != 1) {
    if (ret.size() == 0 || ret[ret.size() - 1] != lpd[x]) ret.push_back(lpd[x]);
    x /= lpd[x];
  }
  return ret;
}
vector<long long> fact;
void factgen(long long n, long long m) {
  fact.resize(n + 1);
  fact[0] = 1;
  for (long long i = 1; i <= n; i++) {
    fact[i] = i * fact[i - 1];
    fact[i] %= m;
  }
}
template <typename T>
vector<T> factor(T x) {
  vector<T> ret;
  for (long long i = 1; i * i <= x; i++) {
    if (i * i == x) {
      ret.push_back(i);
      break;
    }
    if (x % i == 0) {
      ret.push_back(i);
      ret.push_back(x / i);
    }
  }
  return ret;
}
template <typename T>
void init(vector<T>& x, T n) {
  for (int i = 0; i < x.size(); i++) x[i] = n;
}
template <typename T>
void init2(vector<vector<T> >& x, T n) {
  for (int i = 0; i < x.size(); i++)
    for (int j = 0; j < x[i].size(); j++) x[i][j] = n;
}
template <typename T>
void init3(vector<vector<vector<T> > >& x, T n) {
  for (int i = 0; i < x.size(); i++)
    for (int j = 0; j < x[i].size(); j++)
      for (int k = 0; k < x[i][j].size(); k++) x[i][j][k] = n;
}
template <typename T>
void inits2(vector<vector<T> >& x, int a, int b) {
  x.resize(a);
  for (int i = 0; i < x.size(); i++) x[i].resize(b);
}
template <typename T>
void inits3(vector<vector<T> >& x, int a, int b, int c) {
  x.resize(a);
  for (int i = 0; i < x.size(); i++) {
    x[i].resize(b);
    for (int j = 0; j < x[i].size(); j++) x[i][j].resize(c);
  }
}
template <typename T>
T minarr(T* arr, int n) {
  T x = arr[0];
  for (int i = 0; i < n; i++) x = min(x, arr[i]);
  return x;
}
template <typename T>
T maxarr(T* arr, int n) {
  T x = arr[0];
  for (int i = 0; i < n; i++) x = max(x, arr[i]);
  return x;
}
template <typename T>
T minarr(vector<T>& arr) {
  T x = arr[0];
  for (int i = 0; i < arr.size(); i++) x = min(x, arr[i]);
  return x;
}
template <typename T>
T maxarr(vector<T>& arr) {
  T x = arr[0];
  for (int i = 0; i < arr.size(); i++) x = max(x, arr[i]);
  return x;
}
template <typename T>
void prt(vector<T>& x, int n) {
  for (int i = 0; i < n; i++) cout << x[i] << " ";
}
template <typename T>
void prt(T* x, int n) {
  for (int i = 0; i < n; i++) cout << x[i] << " ";
}
template <typename T>
void prtl(vector<T>& x, int n) {
  for (int i = 0; i < n; i++) cout << x[i] << endl;
}
template <typename T>
void prtl(T* x, int n) {
  for (int i = 0; i < n; i++) cout << x[i] << endl;
}
template <typename T>
void scan(T* arr, int n) {
  for (int i = 0; i < n; i++) cin >> arr[i];
}
template <typename T>
void scan(vector<T>& ret, int n) {
  for (int i = 0; i < n; i++) cin >> ret[i];
}
vector<int> failure(string& s) {
  vector<int> f(s.size(), 0);
  int ex = 0;
  for (int i = 1; i < s.size(); i++) {
    while (ex != 0 && s[ex] != s[i]) ex = f[ex - 1];
    if (ex == 0) {
      if (s[ex] != s[i]) {
        f[i] = 0;
        ex = 0;
        continue;
      }
    }
    f[i] = ex + 1;
    ex++;
  }
  return f;
}
int main() {
  int n;
  cin >> n;
  seive(n);
  long long ans = 0;
  for (int i = 0; i < p.size(); i++) {
    int j = 2 * p[i];
    while (j <= n) {
      ans += (long long)4 * (j / p[i]);
      j += p[i];
    }
  }
  cout << ans << endl;
}
