N, A, B = map(int, input().split())
S = input()

diffs: dict = {}

for i in range(N):
    diff = 0
    for j in range(N // 2):
        l = (i + j) % N
        r = (i + N - 1 - j) % N
        if S[l] != S[r]:
            diff += 1
    diffs[i] = diff

ans = 2 << 60
for i in diffs:
    ans = min(ans, A * i + B * diffs[i])
print(ans)
