a = raw_input()
b=10
while b>=1:
b = sqrt(a)
if b.isPrime == (False):
c = a-b
if c.isPrime == (False):
print b,c
break
else:
b -= 1
(isPrime 是判断素数的函数)
a = raw_input()
b=10
while b>=1:
b = sqrt(a)
if b.isPrime == (False):
c = a-b
if c.isPrime == (False):
print b,c
break
else:
b -= 1
(isPrime 是判断素数的函数)