#include "iostream"
using namespace std;
class Student
{
private:
int num;
float score;
public:
Student(int ,float);
void change(int,float);
void display();
friend void fun(Student&);
};
Student::Student(int n,float s)
:num(n),score(s)
{}
void Student::change(int n,float s)
{
num=n;
score=s;
}
void Student::display()
{
cout<<num<<" "<<score<<endl;
}
void fun(Student& p)
{
int n;
float s;
cin>>n>>s;
p.change(n,s);
p.display();
}
int main(int argc, char const *argv[])
{
Student stud(101,78.5);
stud.display();
fun(stud);
return 0;
}