#include
int main()
{
int n ;
std::cin >> n;
int min;
int max;
int sum = 0;
for (int i = 0; i < n; ++i)
{
int val;
std::cin >> val;
if (i == 0)
{
min = val;
max = val;
}
if (val < min)
{
min = val;
}
if (val > max)
{
max= val;
}
sum += val;
}
std::cout << "Min == " << min << std::endl;</p>
std::cout << "Max == " << max << std::endl;</p>
std::cout << "Sum == " << sum << std::endl;</p>
return 0;
}