n,k = map(int,input().split()) from collections import defaultdict dp = defaultdict(int) dp[k] = 2 for i in range(2,n+1): ndp = dp.copy() for k,v in dp.items(): ndp[k//i] += v dp = ndp print(sum(dp.values())-1-dp[0])