#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define REP(i,n) for(long (i)=0;(i)<(n);(i)++) #define FOR(i,a,b) for(long (i)=(a);(i)<(b);(i)++) #define RREP(i,a) for(long (i)=(a)-1;(i)>=0;(i)--) #define FORR(i,a,b) for(long (i)=(a)-1;(i)>=(b);(i)--) #define MOD 1000000007 #define PI acos(-1.0) #define DEBUG(C) cout< #define PLL pair #define ALL(a) (a).begin(),(a).end() #define SORT(a) sort((a).begin(),(a).end()) #define RSORT(a) sort((a).begin(),(a).end(),greater()) typedef long long LL; typedef unsigned long long ULL; using namespace std; class myclass{ public: void func(){} }; int main(void){ string a,b; cin>>a>>b; string aa=a,ba=b; if(a.size()==b.size()){ REP(i,a.size()){ int an=a[i]-'0'; int bn=b[i]-'0'; //DEBUG(an)DEBUG(bn) if((an==4&&bn==7)||(an==7&&bn==4)){ if(anbn){ cout<bn){ cout<b.size()){ cout<