/** * author: TakeruOkuyama * created: 2020-04-09 14:53:46 **/ #include #define rep(i, n) for(int i = 0; i < (n); i++) using namespace std; using ll = long long; using P = pair; int main(){ string S; for(int i = 1;i < 100; i++){ S += to_string(i); } //cout << S; int N; cin >> N; cout << S[N-1] << endl; return 0;} /** **/