import java.awt .Point ;
import java.io .* ;
import java.lang .reflect .Array ;
import java.math .BigInteger ;
import java.util .* ;
import static java.lang .Math .* ;
public class HelloWorld implements Runnable{
final boolean ONLINE_JUDGE = System.getProperty ( "ONLINE_JUDGE" ) ! = null;
final boolean LOCAL = System.getSecurityManager ( ) == null;
final String input = "input.txt" ;
final String output = "output.txt" ;
BufferedReader in;
PrintWriter out;
StringTokenizer tok = new StringTokenizer( "" ) ;
void init( ) throws FileNotFoundException{
if ( ! LOCAL) {
in = new BufferedReader( new InputStreamReader( System.in ) ) ;
out = new PrintWriter( System.out ) ;
} else {
in = new BufferedReader( new InputStreamReader( System.in ) ) ;
out = new PrintWriter( System.out ) ;
//in = new BufferedReader(new FileReader(input));
//out = new PrintWriter(output);
}
}
String readString( ) throws IOException{
while ( ! tok.hasMoreTokens ( ) ) {
try {
tok = new StringTokenizer( in.readLine ( ) ) ;
} catch ( Exception e) {
return null;
}
}
return tok.nextToken ( ) ;
}
int readInt( ) throws IOException{
return Integer.parseInt ( readString( ) ) ;
}
long readLong( ) throws IOException{
return Long.parseLong ( readString( ) ) ;
}
double readDouble( ) throws IOException{
return Double.parseDouble ( readString( ) ) ;
}
public static void main( String[ ] args) {
new Thread( null, new HelloWorld( ) , "" , 256 * ( 1L << 20 ) ) .start ( ) ;
}
long timeBegin, timeEnd;
void time ( ) {
timeEnd = System.currentTimeMillis ( ) ;
System.err .println ( "Time = " + ( timeEnd - timeBegin) ) ;
}
public void run( ) {
try {
timeBegin = System.currentTimeMillis ( ) ;
init( ) ;
solve( ) ;
out.close ( ) ;
time ( ) ;
} catch ( Exception e) {
e.printStackTrace ( System.err ) ;
System.exit ( - 1 ) ;
}
}
int mod = 1000000007 ;
boolean Find( char a, char b, char c, int n, int m, int k)
{
if ( n == 0 && m == 0 && k == 0 && a == 'R' && b == 'G' && c == 'B' )
{
return true ;
}
boolean res = false ;
if ( n > 0 )
{
res = Find( b, a, c, n - 1 , m , k ) ;
if ( res)
return true ;
}
if ( m > 0 )
{
res = Find( c, b, a, n, m - 1 , k ) ;
if ( res)
return true ;
}
if ( k > 0 )
{
res = Find( a, c, b, n, m , k- 1 ) ;
if ( res)
return true ;
}
return false ;
}
void solve( ) throws IOException{
int n = readInt( ) ;
int m = readInt( ) ;
int k = readInt( ) ;
String s = readString( ) ;
char [ ] arr = s.toCharArray ( ) ;
boolean res= Find( s.charAt ( 0 ) , s.charAt ( 1 ) , s.charAt ( 2 ) , n, m, k) ;
if ( res)
{
out.print ( "Yes" ) ;
} else
{
out.print ( "No" ) ;
}
}
}
CmltcG9ydCBqYXZhLmF3dC5Qb2ludDsKaW1wb3J0IGphdmEuaW8uKjsKaW1wb3J0IGphdmEubGFuZy5yZWZsZWN0LkFycmF5OwppbXBvcnQgamF2YS5tYXRoLkJpZ0ludGVnZXI7CmltcG9ydCBqYXZhLnV0aWwuKjsKCmltcG9ydCBzdGF0aWMgamF2YS5sYW5nLk1hdGguKjsKIApwdWJsaWMgY2xhc3MgSGVsbG9Xb3JsZCBpbXBsZW1lbnRzIFJ1bm5hYmxlewogICAgICAgCiAgICBmaW5hbCBib29sZWFuIE9OTElORV9KVURHRSA9IFN5c3RlbS5nZXRQcm9wZXJ0eSgiT05MSU5FX0pVREdFIikgIT0gbnVsbDsKICAgIGZpbmFsIGJvb2xlYW4gTE9DQUwgPSBTeXN0ZW0uZ2V0U2VjdXJpdHlNYW5hZ2VyKCkgPT0gbnVsbDsKICAgIGZpbmFsIFN0cmluZyBpbnB1dCA9ICJpbnB1dC50eHQiOwogICAgZmluYWwgU3RyaW5nIG91dHB1dCA9ICJvdXRwdXQudHh0IjsKICAgCiAgICBCdWZmZXJlZFJlYWRlciBpbjsKICAgIFByaW50V3JpdGVyIG91dDsKICAgIFN0cmluZ1Rva2VuaXplciB0b2sgPSBuZXcgU3RyaW5nVG9rZW5pemVyKCIiKTsKICAgCiAgICB2b2lkIGluaXQoKSB0aHJvd3MgRmlsZU5vdEZvdW5kRXhjZXB0aW9uewogICAgICAgICAgICBpZiAoIUxPQ0FMKXsKICAgICAgICAgICAgICAgICAgICBpbiA9IG5ldyBCdWZmZXJlZFJlYWRlcihuZXcgSW5wdXRTdHJlYW1SZWFkZXIoU3lzdGVtLmluKSk7CiAgICAgICAgICAgICAgICAgICAgb3V0ID0gbmV3IFByaW50V3JpdGVyKFN5c3RlbS5vdXQpOwogICAgICAgICAgICB9ZWxzZXsKICAgICAgICAgICAgCWluID0gbmV3IEJ1ZmZlcmVkUmVhZGVyKG5ldyBJbnB1dFN0cmVhbVJlYWRlcihTeXN0ZW0uaW4pKTsKICAgICAgICAgICAgICAgIG91dCA9IG5ldyBQcmludFdyaXRlcihTeXN0ZW0ub3V0KTsKICAgICAgICAgICAgICAgICAgICAvL2luID0gbmV3IEJ1ZmZlcmVkUmVhZGVyKG5ldyBGaWxlUmVhZGVyKGlucHV0KSk7CiAgICAgICAgICAgICAgICAgICAgLy9vdXQgPSBuZXcgUHJpbnRXcml0ZXIob3V0cHV0KTsKICAgICAgICAgICAgfQogICAgfQogICAgICAgCiAgICAgICAgU3RyaW5nIHJlYWRTdHJpbmcoKSB0aHJvd3MgSU9FeGNlcHRpb257CiAgICAgICAgICAgICAgICB3aGlsZSghdG9rLmhhc01vcmVUb2tlbnMoKSl7CiAgICAgICAgICAgICAgICAgICAgICAgIHRyeXsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0b2sgPSBuZXcgU3RyaW5nVG9rZW5pemVyKGluLnJlYWRMaW5lKCkpOwogICAgICAgICAgICAgICAgICAgICAgICB9Y2F0Y2ggKEV4Y2VwdGlvbiBlKXsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gbnVsbDsKICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgcmV0dXJuIHRvay5uZXh0VG9rZW4oKTsKICAgICAgICB9CiAgICAgICAKICAgICAgICBpbnQgcmVhZEludCgpIHRocm93cyBJT0V4Y2VwdGlvbnsKICAgICAgICAgICAgICAgIHJldHVybiBJbnRlZ2VyLnBhcnNlSW50KHJlYWRTdHJpbmcoKSk7CiAgICAgICAgfQogICAgICAgCiAgICAgICAgbG9uZyByZWFkTG9uZygpIHRocm93cyBJT0V4Y2VwdGlvbnsKICAgICAgICAgICAgICAgIHJldHVybiBMb25nLnBhcnNlTG9uZyhyZWFkU3RyaW5nKCkpOwogICAgICAgIH0KICAgICAgIAogICAgICAgIGRvdWJsZSByZWFkRG91YmxlKCkgdGhyb3dzIElPRXhjZXB0aW9uewogICAgICAgICAgICAgICAgcmV0dXJuIERvdWJsZS5wYXJzZURvdWJsZShyZWFkU3RyaW5nKCkpOwogICAgICAgIH0KICAgICAgIAogICAgICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpewogICAgICAgICAgICAgICAgbmV3IFRocmVhZChudWxsLCBuZXcgSGVsbG9Xb3JsZCgpLCAiIiwgMjU2ICogKDFMIDw8IDIwKSkuc3RhcnQoKTsKICAgICAgICB9CiAgICAgICAKICAgICAgICBsb25nIHRpbWVCZWdpbiwgdGltZUVuZDsKIAogICAgICAgIHZvaWQgdGltZSgpewogICAgICAgICAgICAgICAgdGltZUVuZCA9IFN5c3RlbS5jdXJyZW50VGltZU1pbGxpcygpOwogICAgICAgICAgICAgICAgU3lzdGVtLmVyci5wcmludGxuKCJUaW1lID0gIiArICh0aW1lRW5kIC0gdGltZUJlZ2luKSk7CiAgICAgICAgfQogICAgICAgCiAgICAgICAgcHVibGljIHZvaWQgcnVuKCl7CiAgICAgICAgICAgICAgICB0cnl7CiAgICAgICAgICAgICAgICAgICAgICAgIHRpbWVCZWdpbiA9IFN5c3RlbS5jdXJyZW50VGltZU1pbGxpcygpOwogICAgICAgICAgICAgICAgICAgICAgICBpbml0KCk7CiAgICAgICAgICAgICAgICAgICAgICAgIHNvbHZlKCk7CiAgICAgICAgICAgICAgICAgICAgICAgIG91dC5jbG9zZSgpOwogICAgICAgICAgICAgICAgICAgICAgICB0aW1lKCk7CiAgICAgICAgICAgICAgICB9Y2F0Y2ggKEV4Y2VwdGlvbiBlKXsKICAgICAgICAgICAgICAgICAgICAgICAgZS5wcmludFN0YWNrVHJhY2UoU3lzdGVtLmVycik7CiAgICAgICAgICAgICAgICAgICAgICAgIFN5c3RlbS5leGl0KC0xKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgCiAgICAgICAgaW50IG1vZCA9IDEwMDAwMDAwMDc7IAogICAgICAgIAogICAgICAgICAgICAgICAKICAgICAgICBib29sZWFuIEZpbmQoY2hhciBhLCBjaGFyIGIsIGNoYXIgYywgaW50IG4sIGludCBtLCBpbnQgaykKICAgICAgICB7CiAgICAgICAgICAgIGlmIChuID09IDAgJiYgbSA9PSAwICYmIGsgPT0gMCAmJiBhID09ICdSJyAmJiBiID09ICdHJyAmJiBjID09ICdCJykKICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgIGJvb2xlYW4gcmVzID0gZmFsc2U7CiAgICAgICAgICAgICAgICBpZiAobiA+IDApCiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJlcyA9IEZpbmQoYiwgYSwgYywgbiAtIDEsIG0gLCBrICk7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChyZXMpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBpZiAobSA+IDApCiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJlcyA9IEZpbmQoYywgYiwgYSwgbiwgbSAtMSAsIGsgKTsKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHJlcykKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGlmIChrID4gMCkKICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmVzID0gRmluZChhLCBjLCBiLCBuLCBtICwgay0xICk7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChyZXMpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQogICAgICAgIAogICAgICAgIHZvaWQgc29sdmUoKSB0aHJvd3MgSU9FeGNlcHRpb257CiAgICAgICAgICAgICAgICBpbnQgbiA9IHJlYWRJbnQoKTsKICAgICAgICAgICAgICAgIGludCBtID0gcmVhZEludCgpOwogICAgICAgICAgICAgICAgaW50IGsgPSByZWFkSW50KCk7CiAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgIFN0cmluZyBzID0gcmVhZFN0cmluZygpOwogICAgICAgICAgICAgICAgY2hhcltdIGFyciA9IHMudG9DaGFyQXJyYXkoKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgIGJvb2xlYW4gcmVzPSBGaW5kKHMuY2hhckF0KDApLCBzLmNoYXJBdCgxKSwgcy5jaGFyQXQoMiksIG4sIG0sIGspOwogICAgICAgICAgICAgICAgaWYgKHJlcykKICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICAgICAgb3V0LnByaW50KCJZZXMiKTsKICAgICAgICAgICAgICAgIH1lbHNlCiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgIG91dC5wcmludCgiTm8iKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICB9Cn0=