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 HashMap<>(); for (int i=2; i<=30; i++) { map.put(i*(i-1)/2, i); } Set set = new HashSet<>(); for (int i=1; i<=28; i++) { set.add((long)Math.pow(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()) { int k = e.getKey(); long d = n/k; if (set.contains(d)) { for (int i=0; i list) { for (int i=0; i