//#include #include using namespace std; //using namespace atcoder; using ll = long long; #define all(A) A.begin(),A.end() using vll = vector; #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) using Graph = vector>; int main() { string an="123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960"; ll D; cin>>D; cout<