#include<iostream>
#include<vector>
#include<string>
using namespace std;
struct Student {
    string name;
    int roll;
    float marks;
};
int main() {
    int n;
    cin>>n;
    
    if(n<0) {
        cout<<"Invalid input"<<endl;
        return 0;
    }
    
    vector<student> Students;
    for (int i=0;i<n; ++i) {
        student s;
        cin>>s.name>>s.roll>>s.marks;
        students.push_back(s);
    }
    bool found=false;
    for(const auto &s :students) {
        if (s.markss >80.0) {
            cout<<s.name<<" "<<s.roll<<" "<<s.marks<<endl;
            found true;
        }
    }
    if (!found) {
        cout<<"No student scored above 80%"<<endl;
    }
    return 0;
}