#include #include using namespace std; int main () { int n; cin >> n; vector d (n); for (int i = 2; i * i < n; i++) if (!d[i]) for (int j = i * i; j < n; j += i) if (!d[j]) d[j] = i; for (int i = 2; i < n; i++) cout << i << ": " << d[i] << endl; return 0; }