import itertools
 
def fun(l,n):
    flag = True
    for i in xrange(1,n):
        if (l[i]*l[i-1])/4.0 != ((l[i]*l[i-1])/4)*1.0:
            flag = False
            break
    return flag
 
n = int(raw_input())
l = map(int, raw_input().split(' '))
l = itertools.permutations(l)
l = set(l)
flag = False
 
for i in l:
    flag = fun(i,n)
    print i,flag
    if flag == True:
        print 'Yes'
        break
if flag == False:
    print 'No'