codeforces is giving different answer what other compilers are giving
https://mirror.codeforces.com/contest/1419/submission/142053716 142053716
It is giving that 7th number output is 1 whereas expected is 2 BUT when i copy paste the same test 7th number input to my compiler it is giving 2 only. Please tell me where i can improve it