#include #include using namespace std; int main() { string c; int d; cin >> d; for (int i = 1; c.length() < 100; i++) {c += to_string(i);} cout << c[d - 1] << endl; return 0; }