import sys input = sys.stdin.readline S=input().strip() LEN=len(S) DP=[[0]*(62) for i in range(LEN+2)] DP[0][31]=1 for i in range(LEN+2): for j in range(62): DP[i][j]+=DP[i-1][j] if i