output_description: Print the area of this yard excluding the roads (in square yards).
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B
attempt: import math
  
  a = input().split("¥n")
  K = int(a[1])
  S_len = len(a[0])
  
  print("K=" + str(K) + " S_len=" + str(S_len))
  
  for i in range(S_len):
      # print("i="+str(i) +" n="+a[0][i])
      n = int(a[0][i])
      # print("i="+str(i) +" n="+str(n))
  
      # if(n==1):
      #     K-=1
      #     if(K<=0):
      #         print("1")
      #         break
      # else:
  
      L = int(K * math.log10(n))
      # print("K="+str(K) +" L="+str(L))
      K -= L + 1
      if K <= 0:
          print(n)
          break
  
problem_description: Statement
  
  There is a farm whose length and width are A yard and B yard, respectively. A
  farmer, John, made a vertical road and a horizontal road inside the farm from
  one border to another, as shown below: (The gray part represents the roads.)
  
  ![ ](https://img.atcoder.jp/ghi/27d063746b460f1132b6a99aa535a562.png)
  
  What is the area of this yard excluding the roads? Find it.
samples: [{"input": "2 2", "output": "1\n    \n\nIn this case, the area is 1 square yard.\n\n* * *"}, {"input": "5 7", "output": "24\n    \n\nIn this case, the area is 24 square yards."}]