n=12
s=0
i=2
while i<=n:
    if n%i==0:
        s=s+i
    i=i+2
print(s)