#include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); long long N,M,K,s,t; cin >> N >> M >> K >> s >> t,s--,t--; vector> Graph(N); for(int i=0; i> u >> v; u--; v--; Graph.at(u).push_back(v); Graph.at(v).push_back(u); } if(K%2){cout << "Yes\n"; return 0;} if(Graph.at(s).size() == 0 && Graph.at(t).size() == 0 && K%2 == 0) cout << "No\n"; else cout << "Yes\n"; }