import sys;

def drawCuboid(w, h, d):
	mat=[];
	#Initialize character matrix
	totalH=d+1+h;
	totalW=d+w*5+1;
	for i in range(0,totalH+1):
		mat.append([]);
	sys.stdout.write('\n');
	#Fill top side
	for i in range(0,d+1):
		for j in range(0,d-i):
			mat[i].append(' ');
		for j in range(0,(w*5 +1)):
			gapChar='/';
			if (i==0):
				gapChar=' ';
			if j%5==0:
				mat[i].append(gapChar);
			else:
				mat[i].append('_');
	#Fill front side
	for i in range(0,h):
		for j in range(0,w*5 +1):
			if j%5==0:
				mat[i+d+1].append('|');
			else:
				mat[i+d+1].append('_');
	#Fill right side
	for i in range(1,d+h+1):
			while (len(mat[i])<=(w*5+(totalH-i)))and(len(mat[i])<totalW):
				if (len(mat[i])<=totalW and len(mat[i])==(w*5+(totalH-i))):
					mat[i].append('/');
				else:
					mat[i].append('|');
	printMatrix(mat);
	
def printMatrix(mat):
	for i in range(0,len(mat)):
		for j in range(0, len(mat[i])):
			sys.stdout.write(mat[i][j]);
		sys.stdout.write('\n');
w=int(input('Enter width '));

h=int(input('Enter height '));

d=int(input('Enter depth '));

drawCuboid(w,h,d);