package main import ( "bytes" "fmt" "strconv" ) func main() { var d int fmt.Scan(&d) var buffer bytes.Buffer for i := 0; i <= 101; i++ { buffer.WriteString(strconv.Itoa(i)) } fmt.Println(string(buffer.String()[d])) }