#include <cstdlib>
#include <iostream>
using namespace std;
const int END = true, NEND = false;
int forout(const char* s, int n, bool end)
{
for( int i=0 ; i<n ; i++ )
{
cout << s << ((i+1 != n || !end)? ", ": (end? "\n" : ""));
}
}
int main(){
int yellow, green;
cin >> yellow >> green;
if(yellow == 0){
if(green != 0)
{
cout << "P: rr X rr\n";
cout << "F1: ";
forout("rr", green, END);
}
else
{
cout << "P: Один из родителей будет обладать генотипом rr, а второй может быть каким угодною.\n";
}
}
else if(green == 0){
cout << "P: rr x RR\n";
cout << "F1: ";
forout("Rr", green+yellow, END);
}
else
{
cout << "P: rr x Rr\n";
cout << "F1: ";
forout("Rr", yellow, NEND);
forout("rr", green, END);
}
}
I2luY2x1ZGUgPGNzdGRsaWI+CiNpbmNsdWRlIDxpb3N0cmVhbT4KIAp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCmNvbnN0IGludCBFTkQgPSB0cnVlLCBORU5EID0gZmFsc2U7CQkJCQkJCQkJCgkJCQkJCQkJCQkJCQkJCQkJCmludCBmb3JvdXQoY29uc3QgY2hhciogcywgaW50IG4sIGJvb2wgZW5kKQoJewkJCQkJCQkKCQlmb3IoIGludCBpPTAgOyBpPG4gOyBpKysgKQoJCXsKCQkJY291dCA8PCBzIDw8ICgoaSsxICE9IG4gfHwgIWVuZCk/ICIsICI6IChlbmQ/ICJcbiIgOiAiIikpOwkKCQl9Cgl9CiAKaW50IG1haW4oKXsKCWludCB5ZWxsb3csIGdyZWVuOwkJCgljaW4gPj4geWVsbG93ID4+IGdyZWVuOwoJaWYoeWVsbG93ID09IDApewkJCQkJCQkJCQkJCQkJCQkJCQkJCgkJaWYoZ3JlZW4gIT0gMCkKCQl7CQkJCQkJCgkJCWNvdXQgPDwgIlA6IHJyIFggcnJcbiI7CgkJCWNvdXQgPDwgIkYxOiAiOwoJCQlmb3JvdXQoInJyIiwgZ3JlZW4sIEVORCk7CQkKCQl9CgkJZWxzZQoJCXsJCQkJCQkJCQoJCQljb3V0IDw8ICJQO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