def su(x): su = 0 for i in range(2,x): if x % i == 0: su = 1 return False if su == 0: return True while True: try: n = int(input()) for i in range(int(n/2),n):#要从n/2开始遍历,如果从0或1开始遍历的话,输出的素数是较小的素数(如输入20,则输出3,17),那个就不符合题目要求 if su(i) and su(n-i): print(n-i) print(i) break except: break