#include
using namespace std;
int main()
{
int A;
cin >> A;
int Min = A;
int Max = A;
while(A)
{
cin >> A;
if (Max < A && A!=0) Max = A;
if (Min > A && A!=0) Min = A;
}
cout <<"Min = "<<Min<<"\n";<br> cout <<"Max = "<<Max<<"\n";<br> cout <<"Min - Max = "<<Min-Max<<"\n";<br> return 0;
}