#include <iostream>
using namespace std;
int main(){
int a,b,c;
//Citeste notele
cin >> a >> b >> c;
//Daca ultima cel putin 8
if (c >= 8)
cout << a << " " << b << " " << c;
else {
//Daca ultima mai mica decat 8
if (a > b) cout << a;
else cout << b;
}
}
PROBLEMA 2 :
#include <iostream>
using namespace std;
int main(){
int a,b,c;
//Citeste notele
cin >> a >> b >> c;
if (a>=7) cout << a << " ";
if (b>=7) cout << b << " ";
if (c>=7) cout << c;
}