from sets import Set

set1 = Set([])

l = "qwertyuiopasdfghjklzxcvbnm"

s = raw_input()

for i in range(len(s)+1):
	for e in l:
		x = s[:i:] + e + s[i::]
		set1.add(x)

print len(set1)

a1fe98852f0a14d0083570973e3eabe0196bbbad
from sets import Set

set1 = Set([])

l = "qwertyuiopasdfghjklzxcvbnm"

s = raw_input()

for i in range(len(s)+1):
	for e in l:
		x = s[:i:] + e + s[i::]
		set1.add(x)

print len(set1)
