#include <iostream>
#include <string>
using namespace std;
int main() {
string str1 = "WATER";
string str2 = "PRINGLE";
int N = (int) (str2.length()/(double)str1.length() + 1);
string temp = "";
for (int i=0; i<N; i++)
temp += str1;
string result = temp.substr(0, str2.length());
cout << result << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglzdHJpbmcgc3RyMSA9ICJXQVRFUiI7CglzdHJpbmcgc3RyMiA9ICJQUklOR0xFIjsKCQoJaW50IE4gPSAoaW50KSAoc3RyMi5sZW5ndGgoKS8oZG91YmxlKXN0cjEubGVuZ3RoKCkgKyAxKTsKCQoJc3RyaW5nIHRlbXAgPSAiIjsKCWZvciAoaW50IGk9MDsgaTxOOyBpKyspCgkJdGVtcCArPSBzdHIxOwoJCglzdHJpbmcgcmVzdWx0ID0gdGVtcC5zdWJzdHIoMCwgc3RyMi5sZW5ndGgoKSk7Cgljb3V0IDw8IHJlc3VsdCA8PCBlbmRsOwoJCglyZXR1cm4gMDsKfQ==