fork download
  1. n = input()
  2. n = int(n)
  3. x = 0
  4. y = 0
  5. for i in range(1,n+1):
  6. if i*(n-i) > x*y:
  7. x = i
  8. y = n - i
  9. print(x,y)
Success #stdin #stdout 0.09s 14136KB
stdin
6
stdout
3 3