#include <iostream>
#include <algorithm>
using namepace std;

class Course {
public:
    string code;
    string name;
    int credits;
    
    bool operator<(const Course& other) const
    {
        return credits < other.credits;
    }
};
int main() {
    int n;
    cin >> n;
    
    if (n<0) {
        cout << "invalid input";
        return 0;
    }
    Course arr[n]
    
    for(int i=0; i<n ; i++) {
        cout << arr[i].code <<" "
        << arr [i].name <<" "
        << arr [i].credits;
    if(i !=n - 1)
        cout << "\n";
    }
    }