si={abpopcount(i)mod2=0popcount(i)mod2=1
where popcount(i)means the number of ones in binary representation of number i.
Given a string uand an integer n, find the number of occurrences of uin string s(n)and the number of distinct strings vwhich have the same number of occurrences in string s(n). As both the numbers may be very large, you are only asked to calculate it modulo 109+7.