public static void main(String args[]) throws Throwable {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		int caso=1;
		for (StringTokenizer st;(st=new StringTokenizer(in.readLine()))!=null;caso++) {
			int[] arr=new int[6];
			int sum=0;
			for(int i=0;i<arr.length;i++)
				sum+=(arr[i]=parseInt(st.nextToken()))*(i+1);
			if(sum==0)break;
			sb.append("Collection #").append(caso).append(":\n");
			if(sum%2==0) {
				boolean[] sum1=f(arr, 0, 3, sum);
				boolean[] sum2=f(arr, 3, 6, sum);
				boolean ws=false;
				for(int i=0;i<sum1.length&&!ws;i++)
					if(sum1[i]&&sum2[sum/2-i])
						ws=true;
				if(ws)sb.append("Can be divided.");
				else sb.append("Can't be divided.");
			}
			else sb.append("Can't be divided.");
			sb.append("\n\n");
		}
		System.out.print(new String(sb));
	}