Packing of three copies of a graph