(lambda k:print((sum([list(map(int,list(reversed([x-64 for x in k if x>64]))))[i]*(26**i) for i in range(len(list(reversed([x-64 for x in k if x>64]))))]))*(int(''.join([str(x-48) for x in k if x<58])))))([ord(x) for x in input()])
(lambda k:print((sum([list(map(int,list(reversed([x-64 for x in k if x>64]))))[i]*(26**i) for i in range(len(list(reversed([x-64 for x in k if x>64]))))]))*(int(''.join([str(x-48) for x in k if x<58])))))([ord(x) for x in input()])
還是分行比較好懂...
(lambda k:print((sum([list(map(int,list(reversed([x-64 for x in k if x>64]))))[i]*(26**i) for i in range(len(list(reversed([x-64 for x in k if x>64]))))]))*(int(''.join([str(x-48) for x in k if x<58])))))([ord(x) for x in input()])
硬塞...