#include using namespace std; int main(){ string n, m; int a; cin >> n >> m >> a; cout << n; for(int i = 1; i <= a; i++) cout << "_" << m; }