@staticmethod
def a():
    (w, h) = map(int, sys.stdin.readline().split())
    print(('4:3' if ((4 * h) == (3 * w)) else '16:9'))
@staticmethod
def a():
    (w, h) = map(int, sys.stdin.readline().split())
    print(('4:3' if ((4 * h) == (3 * w)) else '16:9'))