static int ratio(long x, long y) { ret y == 0 ? 0 : x/y; }