why isn't input() behaving right?
<p>I've the following python 2.7.3 code which I am submitting to codechef online programming contest:</p>

<pre><code>case = input() 
for i in xrange(0, case):
    try:
        l = [elem for elem in raw_input().split()]
        res = int(l[0][::-1]) + int(l[1][::-1])
        print int(str(res)[::-1])
    except:
        break
</code></pre>

<p>This works on my computer, even when I use input redirection and use a <strong>in.txt</strong> file for input, still it works.</p>

<p>But the problem is when i submit it for evaluation, I get an exception and that exception gets removed when I use raw_input for getting the value of case</p>

<pre><code>case = int(raw_input())
</code></pre>

<p>My in.txt file is as follows:</p>

<pre><code>1
23 45
</code></pre>

<p>My problem is that its working on my computer perfectly, what is it that the online contest site feeding at the 1st line that an exception is being raised, and further it gets rectified when I use raw_input.</p>

<p>Shouldn't input() also work when my 1st line is always an integer?</p>
