#include <bits/stdc++.h>
using namespace std;

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)   FOR(i,0,n)
#define ALL(a)     (a).begin(),(a).end()
#define RALL(a)     (a).rbegin(),(a).rend()
#define PRINT(a)   cout << (a) << endl

#define pb push_back
#define eb emplace_back
#define mp make_pair
#define Fi first
#define Se second

#define debug(x) cerr << x << " " << "(L:" << __LINE__ << ")" << '\n';

using ll = long long int;
using P = pair<int,int>;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;

template <typename T> using PQ = priority_queue<T>;
template <typename T> using minPQ = priority_queue<T, vector<T>, greater<T>>;

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

const int INF = 1001001001;
const ll LINF = 1001001001001001001ll;
const int MOD = 1e9 + 7;

int main(){
  int x;
  cin >> x;
  cout << (x >= 0 ? x : 0 ) << endl;
}


#include <bits/stdc++.h>
using namespace std;
 
#define all(x) (x).begin(),(x).end()
#define print(x) cout << (x) << endl
typedef long long ll;
using P = pair<int,int>;
using Graph = vector<vector<int>>;
//const ll MOD = 1000000007;
const ll MOD = 998244353;
 
template <typename T> inline bool chmax(T &a, T b) {return a < b ? a = b, true : false;}
template <typename T> inline bool chmin(T &a, T b) {return a > b ? a = b, true : false;}

void solve() {
    int n;  cin >> n;
    vector<int> t(n + 1, -1);
    queue<int> pr;
    for(int i=2; i<=n; i++){
        if(t[i] < 0){
            pr.push(i);
            for(int j=i+i; j<=n; j+=i) t[j] = 0;
        }
    }
    vector<int> a(n + 1, -1);
    a[1] = 1;
    for(int i=2; i<=n; i++){
        if(t[i] == -1){
            a[i] = 2;
            for(int j=i+i; j<=n; j+=i) a[j] = a[i] + 1;
        }else{
            for(int j=i+i; j<=n; j+=i) a[j] = a[i] + 1;
        }
    }
    for(int i=1; i<n+1; i++) cout << a[i] << " ";
    int ma = 0;
    cout << endl;
    return;
}

int main() { 
    cin.tie(0); cout.tie(0);
    ios::sync_with_stdio(0);
    cout << fixed << setprecision(18);
 
    int t;
    //cin >> t;
    t = 1;
    while(t--) solve();
    return 0;
}