I am trying techgig problem of finding greatest of 3 numbers. problem as follows 

> 
> You just need to take three number as input from stdin and you need to
>  find greatest of them. 
> 
> 
> ### Input Format
> 
> 
> You will be taking three numbers as an input from stdin one on each line respectively.
> 
> 
> ### Constraints
> 
> 
> -100000 <= N <= 100000
> 
> 
> ### Output Format
> 
> 
> You need to print the greatest of the three numbers to the stdout.
> 
> 
> ### Sample TestCase 1
> 
> 
> Input
> 
> 
> 
> ```
> 902
> 100
> 666
> 
> ```
> 
> 

I done this 

```
''' Read input from STDIN. Print your output to STDOUT '''
#Use input() to read input from STDIN and use print to write your output to STDOUT
import sys
def main():

    s=sys.stdin.read()
    s=s.split("\n")
    a=int(s[0])
    b=int(s[1])
    c=int(s[2])
    temp=0
    e=[a,b,c]
    for i in e:
        if i > temp:
            temp=i
    print(temp)

    '''if (a>b) and (a>c):
        temp = a
    elif (b>a) and (b>c):
        temp = b
    else:
        temp = c
    print(temp)'''

main()

```

It has predefined input 902, 100, 666. My code shows 902 output and expected also shows 902, but its showing failed, Why? In above code commented or non commented thing both showing failed.