#include using namespace std; const long long INF = 1LL << 60; #define MOD 1000000007; typedef long long ll; #define writeln(n) cout< P; typedef pair Psi; int main() { int d; cin>>d; string s=""; for(int i=1; i<=100; i++){ s += to_string(i); } writeln(s[d-1]); }