Vasya fancy number long integer power Petya hand conservative like single integer p positive negative zero to combine taste invent pbinary number form 2x p x nonnegative integerfor example 9binary minus binary number 8 minus 7 1015 8209 7249 10152109the boy use pbinary number represent they face problem give positive integer n what s small number pbinary number necessarily distinct need represent n sum it possible representation impossible altogether help solve problemfor example p0 represent 7 20 21 22And p9 represent 7 number 249note negative pbinary number allow sum Notes section example