from collections import defaultdict x,p = map(int,input().split()) a = list(map(int,input().split())) q = p; m = max(a); ans = 0 while q