On the third sample input, I'm getting output 1 in my IDE. However, when I submit my solution, I get 2. https://mirror.codeforces.com/problemset/problem/1036/A
Why does this happen?
Code: https://mirror.codeforces.com/contest/1036/submission/108317612