#include <bits/stdc++.h>
int main() {
int p = 0, q = 0;
for (int i = 1; i <= 52; i++) {
for (int j = 1; j <= 52; j++) {
if (i == j) { continue; }
for (int k = 1; k <= 52; k++) {
if (k == i || k == j) { continue; }
for (int t = 1; t <= 52; t++) {
if (t == i || t == j || t == k) { continue; }
for (int l = 1; l <= 52; l++) {
if (l == t || l == k || l == i || l == j) { continue; }
int res = !(i % 13)+!(j % 13)+!(k % 13)+!(t % 13)+!(l % 13);
p += res;
q++;
}
}
}
}
}
std::cout << "answer for 5 cards is "
<< p / std::__gcd(p,q) << "/"
<< q / std::__gcd(p,q) << std::endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CmludCBtYWluKCkgewogICAgaW50IHAgPSAwLCBxID0gMDsKICAgIGZvciAoaW50IGkgPSAxOyBpIDw9IDUyOyBpKyspIHsKICAgICAgICBmb3IgKGludCBqID0gMTsgaiA8PSA1MjsgaisrKSB7CiAgICAgICAgICAgIGlmIChpID09IGopIHsgY29udGludWU7IH0KICAgICAgICAgICAgZm9yIChpbnQgayA9IDE7IGsgPD0gNTI7IGsrKykgewogICAgICAgICAgICAgICAgaWYgKGsgPT0gaSB8fCBrID09IGopIHsgY29udGludWU7IH0KICAgICAgICAgICAgICAgIGZvciAoaW50IHQgPSAxOyB0IDw9IDUyOyB0KyspIHsKICAgICAgICAgICAgICAgICAgICBpZiAodCA9PSBpIHx8IHQgPT0gaiB8fCB0ID09IGspIHsgY29udGludWU7IH0KICAgICAgICAgICAgICAgICAgICBmb3IgKGludCBsID0gMTsgbCA8PSA1MjsgbCsrKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChsID09IHQgfHwgbCA9PSBrIHx8IGwgPT0gaSB8fCBsID09IGopIHsgY29udGludWU7IH0KICAgICAgICAgICAgICAgICAgICAgICAgaW50IHJlcyA9ICEoaSAlIDEzKSshKGogJSAxMykrIShrICUgMTMpKyEodCAlIDEzKSshKGwgJSAxMyk7CiAgICAgICAgICAgICAgICAgICAgICAgIHAgKz0gcmVzOwogICAgICAgICAgICAgICAgICAgICAgICBxKys7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfQogICAgfQogICAgc3RkOjpjb3V0IDw8ICJhbnN3ZXIgZm9yIDUgY2FyZHMgaXMgIgogICAgICAgIDw8IHAgLyBzdGQ6Ol9fZ2NkKHAscSkgPDwgIi8iIAogICAgICAgIDw8IHEgLyBzdGQ6Ol9fZ2NkKHAscSkgPDwgc3RkOjplbmRsOwogICAgcmV0dXJuIDA7Cn0=