The given numbers are 1,2,3,4 and sum of digits should be 12.
Case 1:4311111 ,Here the sum of the digits is 12.
The number of ways arranging them is =5!7!=42.
Case 2:4221111.
The number of ways arranging them is =2!4!7!=105
Case 3:3222111.
The number of ways arranging them is =3!3!7!=140
Case 4:3321111.
The number of ways arranging them is =2!4!7!=105
Case 5:2222211
The number of ways arranging them is =5!2!7!=21
The total number of ways are =42+105+140+105+21
=413
Therefore, the required answer is 413.