from sys import stdin
print("===== Jutge enters here =====")
for h in stdin:
        print(h.strip(), longest(h.split()))
print("===== Jutge exits here =====")