/*
Jackson Simoneau
SI@UCF 2026 - Intro to Competitive Programming

Solution to https://open.kattis.com/problems/13floors
*/

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

int main() {
    int x;
    cin >> x;
    
    if(x < 13) cout << x << endl;
    else cout << x+1 << endl;
    return 0;
}