Counter类 官方文档
https://docs.python.org/zh-cn/3/library/collections.html
用来计数,结果返回一个dict
from collections import Counter
if __name__ == "__main__":
num = input()
n = str(int(num)*2)
a = Counter(num)
b = Counter(n)
if a==b: print("Yes")
else: print("No")
print(n)