<filename>3inputs.py
a=int(input())
b=int(input())
c=int(input())
if a>b and a>c:
    print(a, "is greatest")
elif b>a and b>c:
    print(b, "is greatest")
else :
    print(c, "is greatest")
if a<b and a<c:
    print(a, "is smallest")
elif b<a and b<c:
    print(b, "is smallest")
else:
    print(c, "is smallest")
<filename>3inputs.py
a=int(input())
b=int(input())
c=int(input())
if a>b and a>c:
    print(a, "is greatest")
elif b>a and b>c:
    print(b, "is greatest")
else :
    print(c, "is greatest")
if a<b and a<c:
    print(a, "is smallest")
elif b<a and b<c:
    print(b, "is smallest")
else:
    print(c, "is smallest")