import sys from wordfreq import zipf_frequency for s in sys.stdin: w = s.rstrip() print(f"{w}={zipf_frequency(w, 'ja')}")