#include <bits/stdc++.h>
using namespace std;

template<typename t1, typename t2, typename t3, typename t4>
class Quadruple {
public:
    t1 first;
    t2 second;
    t3 third;
    t4 fourth;

    Quadruple(t1 a, t2 b, t3 c, t4 d) {
        first = a;
        second = b;
        third = c;
        fourth = d;
    }

    void display() {
        cout << "First: " << first << endl;
        cout << "Second: " << second << endl;
        cout << "Third: " << third << endl;
        cout << "Fourth: " << fourth << endl;
    }
};

int main() {
    Quadruple<int, string, double, char> q(10, "Nafees", 3.75, 'A');

    q.display();

    return 0;
}