There are N student in a class each of them are given two fair dice, first dice contains 1,4,7,10,13,16 whereas other dice contains, 2,5,8,11,14,17. All student are asked to roll thier both dices M number of times.
Let define sumi for a student as sum of number on both the dice on thier iith throw.
Now you asked each student at end of thier final throw M∑i=1sumi (that is total sum of all sumi over all M throws). Some of students are lying you have to find the number of honest students.
Input format
Output format
Constraints
First student is honest as he can get 1 on first and 2 on second dice on first throw and similarly on second throw as well so total sum of all number on both dices on 2 throws will be (1+2)+(1+2) =6.
Second student is lying as he cannot get sum of 10 in 2 throws.
For third student he can get 1 on first dice and 5 on second dice on first throw whereas on second throw he can get 4 on first dice and 5 on second dice which will sum up to (1+5)+(4+5) =15 so he is also honest.
So total number of honest student is 2.