For this Question: Given an integer N, your task is to find the maximum value of X such that sum of some X consecutive natural numbers is N.Input contains a single integer N.

Constraints:-
1 <= N <= 1000000000Print the maximum value of X such that sum of some X consecutive natural numbers is N.Sample Input:-
5

Sample Output:-
2

Explanation:-
2 + 3 = 5

Sample Input:-
50

Sample Output:-
5

Explanation:-
8 + 9 + 10 + 11 + 12 = 50, I have written this Solution Code: n = int(input())

i = 1
j = 1
s = 0

while(True):

	if(s == n):
		print(j-i)
		break
	s += j
	j += 1

	while(s > n):
		s -= i
		i += 1, In this Programming Language: Python, Now tell me if this Code is compilable or not?