Let k,m,nk, m, nk,m,n be integers satisfying 1<n≤m−1≤k1 < n \leq m - 1 \leq k1<n≤m−1≤k. Given S⊂{1,2,…,k}S \subset \{1, 2, \ldots, k\}S⊂{1,2,…,k} such that the sum of any nnn different elements in SSS is not equal to mmm, find the maximum size of the subset SSS.