#include #include #include #include #include //#include using namespace std; #define reps(i, a, n) for (int i = (a); i < (int)(n); ++i) #define rep(i, n) reps(i, 0, n) #define repe(i,n) for(auto i : n) #define ALL(x) x.begin(),x.end() #define SIZE(x) ll(x.size()) #define INF32 2147483647 //2.147483647×10^{9}:32bit整数のinf #define INF64 9223372036854775807 //9.223372036854775807×10^{18}:64bit整数のinf #define MOD 1000000007 //問題による #define ll long long #define vmax(x) *max_element(x.begin(), x.end()) #define vmin(x) *min_element(x.begin(), x.end()) #define cYes cout << "Yes" << endl; #define cNo cout << "No" << endl; #define F first #define S second #define coutALL(x) for(auto i=x.begin();i!=--x.end();i++)cout<<*i<<" ";cout<<*--x.end()< #define vvi vector > #define vll vector #define vvll vector > int main(){ string s; string t; int n; cin >> s; cin >> t; cin >> n; string res = s; rep(i,n){ res = res + "_" + t; } cout << res << endl; }