#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include using namespace std; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); int n,m; cin>>n>>m; vector X(n),Y(m); rep(i,n) cin>>X[i]; rep(i,m) cin>>Y[i]; sort(ALL(Y)); rep(i,n){ auto t=lower_bound(ALL(Y),X[i])-Y.begin(); if(t==m){ cout<<"Infinity"<