G
1 #include<stdio.h>
2 int main()
3 {
4 int n;
5 while(scanf("%d",&n)!=EOF)
6 {
7 int ans=0;
8 for(int i=1;i*i/2<=n;i++)
9 {
10 if(i%2)
11 {
12 if(n%i==0)ans++;
13 }
14 else
15 {
16 if(n%i==(i/2))ans++;
17 }
18 }
19 printf("%d\n",ans);
20 }
21 return 0;
22 }
2 int main()
3 {
4 int n;
5 while(scanf("%d",&n)!=EOF)
6 {
7 int ans=0;
8 for(int i=1;i*i/2<=n;i++)
9 {
10 if(i%2)
11 {
12 if(n%i==0)ans++;
13 }
14 else
15 {
16 if(n%i==(i/2))ans++;
17 }
18 }
19 printf("%d\n",ans);
20 }
21 return 0;
22 }