from random import * def B(p): return int(random()