#include using namespace std; #define ll long long string method[10000000]; int main(){ ll int x,y,z; queue > q; q.push(make_pair(0,"")); string ans; string ansS; cin>>x>>y>>z; while(!q.empty()){ pair bfs=q.front(); if(method[bfs.first].length()==0){ method[bfs.first]=bfs.second; if(bfs.first==z){ break; } } else{ q.pop(); continue; } if(bfs.first>z+x+y){ q.pop(); continue; } q.push(make_pair(bfs.first+x,bfs.second+"+a")); q.push(make_pair(bfs.first+y,bfs.second+"+b")); if(bfs.first-x>0)q.push(make_pair(bfs.first-x,bfs.second+"-a")); if(bfs.first-y>0)q.push(make_pair(bfs.first-y,bfs.second+"-b")); q.pop(); } ans=method[z]; vector miN; vector plN; for(int i=0; i10000||ans.length()==0){ cout<<"mourennaihasimasenn"<=0; i--){ ansS+=plN[i]; ansS+='W'; plN.pop_back(); } for(int i=0; i