#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MOD = 1e9 + 7;
class Sinhvien{
private:
int ma;
string ten, ngaysinh, lop;
double gpa;
public:
Sinhvien(int ma, string ten, string ngaysinh, string lop, double gpa){
this->ma = ma;
this->ten = ten;
this->ngaysinh = ngaysinh;
this->lop = lop;
this->gpa = gpa;
}
void hienthi(){
cout << "SV" << setw(4) << setfill('0') << ma << " " << ten << " " <<
ngaysinh << " " << lop <<" " << fixed << setprecision(2) << gpa << endl;
}
void setchuanhoans(string ngaysinh){
if(ngaysinh[1] == '/') ngaysinh = "0" + ngaysinh;
if(ngaysinh[4] == '/') ngaysinh.insert(3,"0");
this ->ngaysinh = ngaysinh;
}
};
int main(){
int n; cin >> n;
vector<Sinhvien>v;
for(int i = 1; i <= n; i++){
cin.ignore();
string ten, ngaysinh, lop;
double gpa;
getline(cin,ten);
getline(cin,ngaysinh);
getline(cin,lop);
cin >> gpa;
Sinhvien sv(i, ten, ngaysinh, lop, gpa);
sv.setchuanhoans(ngaysinh);
v.push_back(sv);
}
for(Sinhvien x : v){
x.hienthi();
}
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CnR5cGVkZWYgbG9uZyBsb25nIGxsOwpjb25zdCBpbnQgTU9EID0gMWU5ICsgNzsKCgpjbGFzcyBTaW5odmllbnsKCXByaXZhdGU6CgkJaW50IG1hOwoJCXN0cmluZyB0ZW4sIG5nYXlzaW5oLCBsb3A7CgkJZG91YmxlIGdwYTsKCXB1YmxpYzoKCQlTaW5odmllbihpbnQgbWEsIHN0cmluZyB0ZW4sIHN0cmluZyBuZ2F5c2luaCwgc3RyaW5nIGxvcCwgZG91YmxlIGdwYSl7CgkJCXRoaXMtPm1hID0gbWE7CgkJCXRoaXMtPnRlbiA9IHRlbjsKCQkJdGhpcy0+bmdheXNpbmggPSBuZ2F5c2luaDsJCgkJCXRoaXMtPmxvcCA9IGxvcDsKCQkJdGhpcy0+Z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