#include <iostream>
using namespace std;
bool string_ends_with(const string s, const string match) {
// int compare(size_t pos, size_t len, const string& str) const;
if (s.size() >= match.size() && s.compare(s.size() - match.size(), match.size(), match) == 0)
return true;
else
return false;
}
int main() {
string s = "cpp java php python";
if (string_ends_with(s, "python"))
cout << "yes";
else
cout << "no";
}
/*
run:
yes
*/