A. DUBSTEP REGEX

#include<bits/stdc++.h>
using namespace std;
#define iter(abcfor(auto(a) = (b); (a) < (c); ++(a))
#define mod 1000000007
#define pb push_back
#define ff first
#define ss second
#define FIO ios_base::sync_with_stdio(false); cin.tie(NULL);
#define test(wint w;cin>>w;while(w--)


int main() { 
  string scin>>s;
  regex p("WUB");
  cout<<regex_replace(s,p," ");  
  return 0;
}


Comments