import sys
contador = 1
maior = 0
menor = sys .maxsize
S = 0
while contador <= 5 :
num = int ( input ( "Digite o " + str ( contador) + "º valor:" ) )
if num > maior:
maior = num
if num < menor:
menor = num
S += num
contador += 1
print ( "A soma de todos os valore é igual a" , S)
print ( "O maior valor digitado foi" , maior)
print ( "O menor valor digitado foi" , menor)
#https://pt.stackoverflow.com/q/177468/101
aW1wb3J0IHN5cwoKY29udGFkb3IgPSAxCm1haW9yID0gMAptZW5vciA9IHN5cy5tYXhzaXplClMgPSAwCgp3aGlsZSBjb250YWRvciA8PSA1OgogICAgbnVtID0gaW50KGlucHV0KCJEaWdpdGUgbyAiICsgc3RyKGNvbnRhZG9yKSArICLCuiB2YWxvcjoiKSkKICAgIGlmIG51bSA+IG1haW9yOgogICAgICAgIG1haW9yID0gbnVtCiAgICBpZiBudW0gPCBtZW5vcjoKICAgICAgICBtZW5vciA9IG51bQogICAgUyArPSBudW0KICAgIGNvbnRhZG9yICs9IDEKcHJpbnQoIkEgc29tYSBkZSB0b2RvcyBvcyB2YWxvcmUgw6kgaWd1YWwgYSIsIFMpCnByaW50KCJPIG1haW9yIHZhbG9yIGRpZ2l0YWRvIGZvaSIsIG1haW9yKQpwcmludCgiTyBtZW5vciB2YWxvciBkaWdpdGFkbyBmb2kiLCBtZW5vcikKCiNodHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMTc3NDY4LzEwMQ==