#include <bits/stdc++.h>
#define all(x) (x).begin(),(x).end()
#define isz(x) (int)(x).size()
typedef long long ll;
int main() {
for (int n, k; std::cin >> n >> k; ) {
std::vector<ll> arr(n), curr, tmp; for (auto &it : arr) { std::cin >> it; }
if (n-- > (1 << std::min(30,k))) {
std::cout << "No solution" << std::endl; continue;
}
ll p = 0, q = std::accumulate(all(arr), ll(0));
std::sort(all(arr));
for (int len = -k; len < 30; ++len) {
if (len < 0) {
tmp.clear();
std::merge(all(curr), all(arr), std::back_inserter(tmp));
curr = tmp;
}
int sz = 0, st = 0;
if (len >= 0 && ((n >> len) & 1)) {
st = 1; p += curr.front();
}
for (int i = st; i + 1 < isz(curr); i += 2) {
curr[sz++] = curr[i] + curr[i+1];
}
curr.resize(sz);
}
std::cout << p / std::__gcd(p,q) << '/' << q / std::__gcd(p, q) << std::endl;
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CiNkZWZpbmUgYWxsKHgpICh4KS5iZWdpbigpLCh4KS5lbmQoKQojZGVmaW5lIGlzeih4KSAoaW50KSh4KS5zaXplKCkKdHlwZWRlZiBsb25nIGxvbmcgbGw7CmludCBtYWluKCkgewogICAgZm9yIChpbnQgbiwgazsgc3RkOjpjaW4gPj4gbiA+PiBrOyApIHsKICAgICAgICBzdGQ6OnZlY3RvcjxsbD4gYXJyKG4pLCBjdXJyLCB0bXA7IGZvciAoYXV0byAmaXQgOiBhcnIpIHsgc3RkOjpjaW4gPj4gaXQ7IH0KICAgICAgICBpZiAobi0tID4gKDEgPDwgc3RkOjptaW4oMzAsaykpKSB7CiAgICAgICAgICAgIHN0ZDo6Y291dCA8PCAiTm8gc29sdXRpb24iIDw8IHN0ZDo6ZW5kbDsgY29udGludWU7IAogICAgICAgIH0KICAgICAgICBsbCBwID0gMCwgcSA9IHN0ZDo6YWNjdW11bGF0ZShhbGwoYXJyKSwgbGwoMCkpOwogICAgICAgIHN0ZDo6c29ydChhbGwoYXJyKSk7CiAgICAgICAgZm9yIChpbnQgbGVuID0gLWs7IGxlbiA8IDMwOyArK2xlbikgewogICAgICAgICAgICBpZiAobGVuIDwgMCkgewogICAgICAgICAgICAgICAgdG1wLmNsZWFyKCk7CiAgICAgICAgICAgICAgICBzdGQ6Om1lcmdlKGFsbChjdXJyKSwgYWxsKGFyciksIHN0ZDo6YmFja19pbnNlcnRlcih0bXApKTsKICAgICAgICAgICAgICAgIGN1cnIgPSB0bXA7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgaW50IHN6ID0gMCwgc3QgPSAwOwogICAgICAgICAgICBpZiAobGVuID49IDAgJiYgKChuID4+IGxlbikgJiAxKSkgewogICAgICAgICAgICAgICAgc3QgPSAxOyBwICs9IGN1cnIuZnJvbnQoKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBmb3IgKGludCBpID0gc3Q7IGkgKyAxIDwgaXN6KGN1cnIpOyBpICs9IDIpIHsKICAgICAgICAgICAgICAgIGN1cnJbc3orK10gPSBjdXJyW2ldICsgY3VycltpKzFdOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGN1cnIucmVzaXplKHN6KTsKICAgICAgICB9CiAgICAgICAgc3RkOjpjb3V0IDw8IHAgLyBzdGQ6Ol9fZ2NkKHAscSkgPDwgJy8nIDw8IHEgLyBzdGQ6Ol9fZ2NkKHAsIHEpIDw8IHN0ZDo6ZW5kbDsKICAgIH0KICAgIHJldHVybiAwOwp9