def isPrime(num): for i in range(2, num): if num % i == 0: return False return True while True: try: n = int(input()) mid = n // 2 min_diff = 1000 resnum1, resnum2 = 0, 0 for i in range(2, mid+1): num1 = n-i ...