第一行 222 个整数 n,mn,mn,m,分别表示点数和边数。
第二行 333 个整数 A,B,CA,B,CA,B,C。
接下来 mmm 行,每行 222 个整数 ui,viu_i,v_iui,vi,表示点 uiu_iui 和 viv_ivi 间有一条双向边。