n=str(input()) p=str(input()) print(n.count(p)*int(p))
统计指定数字和
原文:https://www.cnblogs.com/Deranuid/p/13172805.html