def fun(n):
for i in range(2,n+1):
if n%i==0:
break
if i==n:
return 1
else:
return 0
for j in range(2,int(n/2)+1):
if fun(j) and fun(n-j):
print(j," ",n-j)
def fun(n):
for i in range(2,n+1):
if n%i==0:
break
if i==n:
return 1
else:
return 0
for j in range(2,int(n/2)+1):
if fun(j) and fun(n-j):
print(j," ",n-j)