public static int log(long x, int base) {if (base <= 1) {throw new IllegalArgumentException("base must be > 1");}int ret = 0;while (x >= base) {x /= base;ret++;}return ret;}
public static int Log(long x, int @base){if (@base <= 1){throw new System.ArgumentException("base must be > 1");}int ret = 0;while (x >= @base){x /= @base;ret++;}return ret;}