//Step 1:导入主文件及命名空间;
#include <iostream>
#include <vector>
#include <sstream>
using namespace std;
int main(){
// Step 2: 读取输入;
string input;
getline(cin, input);
// Step 3: 处理输入;
istringstream iss(input);
vector<int> scores;
int score;
while (iss >> score) {
scores.push_back(score);
}
// Step 4: 提取最后一个元素;
if (!scores.empty()) {
// Step 5: 输出结果;
cout << scores.back();
cout<<endl;
} else {
cout << "No scores provided";
cout<<endl;
}
return 0;
}