#Lutece1973. 不如给字符串匹配加上通配符吧

不如给字符串匹配加上通配符吧

Migrated from Lutece 1973 不如给字符串匹配加上通配符吧

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

给出字符串aa和字符串bb,请你输出bbaa中所有出现的位置。

特殊的,a,ba,b字符串中会出现一种通配符'??' 这个符号的含义为可以匹配任意字符

Input

仅两行包含两个字符串aabb

aabb的长度均在3e53e5以内,保证不是空串,保证只出现2626个小写字母和'??'

Output

第一行输出匹配成功的次数xx

接下来xx行,每行一个数,代表匹配的位置

请排序后输出

Samples

abab
b?
1
2

Note

欢迎使用各种姿势来过掉此题

不用担心,时限依然是标程的两倍

Resources

2018 UESTC ACM Training for Search Algorithm and String