#include #include #include #include #include #include #include #include #include #include using namespace std; #define int long long int MOD = 1000000007; signed main() { cin.tie(0); ios::sync_with_stdio(false); int N; cin >> N; vector A(N); vector B(N); int res = 0; int mx = 1e9; for (int i = 0; i < N; i++) { cin >> A[i]; } for (int i = 0; i < N; i++) { cin >> B[i]; } for (int i = 0; i < N; i++) { mx = min(A[i], B[i]); } cout << mx << endl; cout << 0 << endl; for (int i = 0; i < N; i++) { cout << A[i] << endl; } cout << mx << endl; }