#include <algorithm>
#include <iterator>
#include <iostream>
#include <vector>
#include <set>
int main()
{
std::set<int> s, s4;
int n;
while (std::cin >> n) {
s .insert(n );
s4.insert(n * 4);
}
std::vector<int> r;
std::set_intersection(s .begin(), s .end(),
s4.begin(), s4.end(), std::back_inserter(r));
for (auto n : r) {
std::cout << n / 2 << " ("
<< n / 4 << ", "
<< n << ") " << std::endl;
}
return 0;
}
I2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGl0ZXJhdG9yPgojaW5jbHVkZSA8aW9zdHJlYW0+CiNpbmNsdWRlIDx2ZWN0b3I+CiNpbmNsdWRlIDxzZXQ+CgppbnQgbWFpbigpCnsKICAgIHN0ZDo6c2V0PGludD4gcywgczQ7CgogICAgaW50IG47CgogICAgd2hpbGUgKHN0ZDo6Y2luID4+IG4pIHsKICAgICAgICBzIC5pbnNlcnQobiAgICApOwogICAgICAgIHM0Lmluc2VydChuICogNCk7CiAgICB9CgogICAgc3RkOjp2ZWN0b3I8aW50PiByOwoKICAgIHN0ZDo6c2V0X2ludGVyc2VjdGlvbihzIC5iZWdpbigpLCBzIC5lbmQoKSwKICAgICAgICAgICAgICAgICAgICAgICAgICBzNC5iZWdpbigpLCBzNC5lbmQoKSwgc3RkOjpiYWNrX2luc2VydGVyKHIpKTsKCiAgICBmb3IgKGF1dG8gbiA6IHIpIHsKICAgICAgICBzdGQ6OmNvdXQgPDwgbiAvIDIgPDwgIiAoIgogICAgICAgICAgICAgICAgICA8PCBuIC8gNCA8PCAiLCAiCiAgICAgICAgICAgICAgICAgIDw8IG4gICAgIDw8ICIpICIgPDwgc3RkOjplbmRsOwogICAgfQoKICAgIHJldHVybiAwOwp9