Problem: Iahub is very proud of his recent discovery, propagating trees. Right now, he invented a new tree, called xor-tree. After this new revolutionary discovery, he invented a game for kids which uses xor-trees.

The game is played on a tree having n nodes, numbered from 1 to n. Each node i has an initial value initi, which is either 0 or 1. The root of the tree is node 1.

One can perform several (possibly, zero) operations on the tree during the game. The only available type of operation is to pick a node x. Right after someone has picked node x, the value of node x flips, the values of sons of x remain the same, the values of sons of sons of x flips, the values of sons of sons of sons of x remain the same and so on.

The goal of the game is to get each node i to have value goali, which can also be only 0 or 1. You need to reach the goal of the game by using minimum number of operations.

Input

The first line contains an integer n (1 ≤ n ≤ 105). Each of the next n - 1 lines contains two integers ui and vi (1 ≤ ui, vi ≤ n; ui ≠ vi) meaning there is an edge between nodes ui and vi. 

The next line contains n integer numbers, the i-th of them corresponds to initi (initi is either 0 or 1). The following line also contains n integer numbers, the i-th number corresponds to goali (goali is either 0 or 1).

Output

In the first line output an integer number cnt, representing the minimal number of operations you perform. Each of the next cnt lines should contain an integer xi, representing that you pick a node xi.

Examples

Input

10
2 1
3 1
4 2
5 1
6 2
7 5
8 6
9 8
10 5
1 0 1 1 0 1 0 1 0 1
1 0 1 0 0 1 1 1 0 1


Output

2
4
7

Solution (in JAVA):

Solution:
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Scanner;

public class CF245Div2C {

	class Node {
		int idx;
		ArrayList<Node> nextNodes;

		public Node(int idx) {
			this.idx = idx;
			this.nextNodes = new ArrayList<Node>();
		}

		void addNext(Node n) {
			nextNodes.add(n);
		}

		@Override
		public String toString() {
			return "<Node:" + idx + ">";
		}
	}

	int flip(int cur, int flippingCnt) {
		return (flippingCnt % 2 == 0) ? cur : cur ^ 1;
	}

	int getPickCount(Node n, Node parent, int curFlipCnt, int nextFlipCnt) {
		if (n == null)
			return 0;
		int idx = n.idx;
		int cnt = 0;
		if (flip(init[idx], curFlipCnt) != goal[idx]) {
			cnt++;
			curFlipCnt++;
			pick.add(idx);
		}
		for (Node c : n.nextNodes) {
			if (c == parent)
				continue;
			cnt += getPickCount(c, n, nextFlipCnt, curFlipCnt);
		}
		return cnt;
	}

	Node[] i2n;
	int[] init;
	int[] goal;
	ArrayList<Integer> pick;

	String solve(int n, int[][] edges, int[] init, int[] goal) {
		this.i2n = new Node[n];
		this.init = init;
		this.goal = goal;
		this.pick = new ArrayList<Integer>();
		Node root = new Node(0);
		i2n[0] = root;
		for (int i = 0; i < edges.length; i++) {
			int idx0 = edges[i][0], idx1 = edges[i][1];
			Node n0 = i2n[idx0], n1 = i2n[idx1];
			if (n0 == null) {
				n0 = new Node(idx0);
				i2n[idx0] = n0;
			}
			if (n1 == null) {
				n1 = new Node(idx1);
				i2n[idx1] = n1;
			}
			n0.addNext(n1);
			n1.addNext(n0);
		}

		StringBuilder sb = new StringBuilder();
		int cnt = getPickCount(root, null, 0, 0);
		sb.append(cnt).append('\n');
		for (int i : pick) {
			sb.append(i + 1).append('\n');
		}
		return sb.toString();
	}

	String solve(InputStream in) {
		Scanner sc = new Scanner(in);
		int n = sc.nextInt();
		int[][] edges = new int[n - 1][2];
		for (int i = 0; i < n - 1; i++) {
			edges[i][0] = sc.nextInt() - 1;
			edges[i][1] = sc.nextInt() - 1;
		}
		int[] init = new int[n];
		for (int i = 0; i < n; i++) {
			init[i] = sc.nextInt();
		}
		int[] goal = new int[n];
		for (int i = 0; i < n; i++) {
			goal[i] = sc.nextInt();
		}

		return solve(n, edges, init, goal);
	}

	public static void main(String[] args) {
		System.out.println(new CF245Div2C().solve(System.in));
	}
}