def find_nth_digit(n):
length = <NUM_LIT:1><EOL>count = <NUM_LIT:9><EOL>start = <NUM_LIT:1><EOL>while n > length * count:<EOL><INDENT>n -= length * count<EOL>length += <NUM_LIT:1><EOL>count *= <NUM_LIT:10><EOL>start *= <NUM_LIT:10><EOL><DEDENT>start += (n-<NUM_LIT:1>) / length<EOL>s = str(start)<EOL>return int(s[(n-<NUM_LIT:1>) % length])<EOL>
find the nth digit of given number.
    1. find the length of the number where the nth digit is from.
    2. find the actual number where the nth digit is from
    3. find the nth digit and return