The following code always accepts a positive even integer as input. What is the output produced by the code if the input is `1999999978`?
Hint: `999999989` is a prime number.
```
n = int(input())
f = n - 2
while (f >= 0) and (n % f != 0):
f = f - 2
print(f)
```