#include int main() { std::string s; for(int i = 0; i < 100; i++){s += std::to_string(i);} int n; std::cin >> n; std::cout << s[n-1]<