#include #include using namespace std; int main(void) { int n; cin >> n; string s = ""; for (int i = 0; i < 100; ++i) { string t = to_string(i); s += t; } cout << s[n] << endl; return 0; }