#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main() {
string fileName = "xxx-yyy.abc";
if (fileName.find('-')) {
replace(fileName.begin(), fileName.end(), '-', '_');
}
cout << fileName.c_str();
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgIHN0cmluZyBmaWxlTmFtZSA9ICJ4eHgteXl5LmFiYyI7CgogICBpZiAoZmlsZU5hbWUuZmluZCgnLScpKSB7CiAgICAgIHJlcGxhY2UoZmlsZU5hbWUuYmVnaW4oKSwgZmlsZU5hbWUuZW5kKCksICctJywgJ18nKTsKICAgfQoKICAgY291dCA8PCBmaWxlTmFtZS5jX3N0cigpOyAgCn0=