import static java.lang.System.*; import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { Map map = new TreeMap<>(); for (int i=2; i<=30; i++) { map.put(i*(i-1)/2, i); } List ans = new ArrayList<>(); long n = sc.nextLong(); if (n == 0) out.println(1); if (map.containsKey((int)n)) { for (int i=0; i e: map.entrySet()) { if (is2n(n/e.getKey())) { for (int i=0; i list) { for (int i=0; i