#include using namespace std; int main() { int D; cin >> D; string s = ""; for (int i = 1; s.size() < 101; i++) { string c = to_string(i); s += c; } //cout << s << endl; cout << s.at(D - 1) << endl; }