#include using namespace std; int main() { int A,a,B,b,C,D,ans; cin>>A>>a>>B>>b>>C>>D; ans=A; if(a