#include using namespace std; int main(){ string s,e; int n; cin>>s>>e>>n; if (n==1){ if (s==e) cout<