#include using namespace std; bool comp(const pair &x, const pair &y) { return x.first * y.second > x.second * y.first; } int main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; string s; for(int i = 1; i <= 100; i++) { s += to_string(i); } cout << s[n - 1] << endl; return 0; }