#include
using namespace std;
int main()
{
int N, temp, min_temp = 1000;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> temp;
if (temp < min_temp) {
min_temp = temp;
}
}
cout << min_temp << endl;</p>
if (min_temp < -15) cout << "YES"; else cout << "NO";</p>
}