import std; void main () { string S = readln.chomp; string T = readln.chomp; int N = readln.chomp.to!int; import std.stdio : write; write(S, "_"); foreach (i; 0..N-1) { write(T, "_"); } writeln(T); }