#include "bits/stdc++.h" #define Rep(i,n) for(int i=0;i P; int n; int main(){ cin >> n; string s = ""; For(i,1,100){ s+=to_string(i); } put(s[n-1]); }