import re

message = """
BWAZABWAKABWAJABWAPABWAIABWANAIBWAKABWAFABWAIABWAZABWAMALBWAMABWACABWATABWAWABWA
PABWAKABWADABWARABWALABWACABWAOABWABABWAEABWATABWAJAFBWAXAABWAAABWATABWAHABWACAU
BWAJABWANABWASABWAAABWARABWAXABWACABWAWABWAHABWAIATBWAGABWADABWAGABWASABWACABWAU
ABWAAABWAPABWAIABWAFABWAUABWATABWACABWAPABWATABWARABWAWABWATATBWASABWAKABWATABWA
NABWAXABWAMABWARAIBWAPABWAUABWAGABWAZABWAPABWAKARBWAMABWAXABWAPABWAEABWAYABWAVAB
WAVABWANABWAQABWAYABWAHABWAUABWACABWAEABWAOABWALABWASABWAVAEBWAIABWAJABWAJABWAIA
BWAMABWAJABWAPABWANABWATABWAPARBWAMABWAOABWAZABWARABWAXABWAHABWADABWAOABWAGABWAI
ABWACABWAEABWAQABWAFABWABABWATALBWAQABWACABWATABWAGABWAWABWAAABWASABWALABWAJABWA
TABWAGABWAFABWAKABWAUAEBWAGABWAOABWAZABWAMABWAMABWAIABWASABWANABWAOABWABABWANABW
ANABWAKABWADABWAJABWAFABWAMABWAPABWACALBWASABWAUABWASABWAOABWAFABWABABWAVABWAJAB
WADABWADABWAVABWAHABWARABWAZABWADAEBWAKABWARABWAAABWANABWADABWAVABWAHABWAEABWANA
BWAXAVBWAZABWASABWAWABWATABWAIABWAFAIBWAIABWAAABWATABWAMABWATABWAGABWAWABWAZABWA
EABWATABWAZABWAIABWAAABWAFABWANAEBWATABWAUABWASARBWAUABWAQABWAFABWAZABWAAABWAUAB
WABABWAKABWAIABWAVABWAGABWAKABWAZABWARABWARABWAKABWACABWAPABWALAEBWAMABWAMABWAHA
BWAQABWAKABWAHABWAAABWADABWAOABWAIABWAWABWAYATBWASABWAYABWACABWAYABWAAABWAIAABWA
YAPBWAJABWANABWAVABWAOABWAQABWASABWACAPBWAVABWALABWAQABWACABWAJABWASABWADABWAWAB
WARABWANABWAGABWADABWAYABWAFABWAJABWAXABWAHABWACABWAKAUBWAHABWATABWARAYBWADABWAF
ABWAXABWAQABWAOABWAHABWAZABWAFABWACABWAMABWAFABWATABWACAEBWAYABWAMABWAEABWAMABWA
LABWABABWAXABWAZABWAAABWAMABWAXABWARABWATABWABABWAGARBWAGABWAIABWAQABWAZABWAXABW
AWABWADASBWAPABWAPABWATABWAJABWAVABWAVABWASABWALABWAJABWASABWAZABWAKABWAKABWARAB
WAMABWALABWALAUBWAPABWAZABWAZABWAPABWAXABWAVABWASABWAAABWAAABWAKABWAEABWAWARBWAM
ABWARABWAAABWASABWAVABWAGABWALABWAYABWACABWAJABWASALBWAAABWARABWAYABWAZABWAAABWA
UABWAQABWADABWABABWAOABWAOABWAEABWAFABWAYABWAUABWAJAEBWAWABBWAJABWABABWAAABWAIAB
WAYABWAJABWAEABWASABWATABWAWABWAXAOBWABABWACABWAJAUBWAYABWANABWATABWAEABWAIABWAV
ABWAMABWANABWAAABWACABWAUABWAEABWAEABWAZABWAZABWAMABWAGABWAOATBWAZABWAUABWAGABWA
LABWAOABWAFABWAPABWAQABWAJABWAGABWAYABWAFABWAZABWAPAOBWARANBWANABWAUABWABAJBWAXA
BWAMABWAOABWADABWAZABWABABWAVABWAAABWAEABWACABWAKABWAKAABWAZABWAZABWAJABWAJABWAB
ABWAGABWADABWALABWAMABWAEABWAIABWAGABWAPABWAWABWAIABWAFABWALABWACAUBWADABWAQABWA
YABWADANBWANABWAYABWAFAEBWALABWAZABWAJABWATABWAXABWAMABWACABWAUABWAQABWACABWALAB
WATABWAXABWATA""".replace("\r", "").replace("\n", "")

res = re.sub("BWA.A", "", message)
print(res)