program to get the first n-th digit of number pi