#include<bits/stdc++.h>
typedef long long int ll;
typedef unsigned long long int ull;
#define BIG_NUM 2000000000
#define HUGE_NUM 99999999999999999
#define MOD 1000000007
#define EPS 0.000000001
using namespace std;


#define SIZE 1005

int H,W,K;
int table[SIZE][SIZE];
char base_map[SIZE][SIZE];


int main(){

	scanf("%d %d %d",&H,&W,&K);

	for(int row = 0; row < H; row++){

		scanf("%s",base_map[row]);
	}

	table[0][0] = -1;
	int North,West;

	for(int row = 0; row < H; row++){
		for(int col = 0; col < W; col++){
			if(row == 0 && col == 0)continue;

			North = -1,West = -1;

			if(row > 0){
				if(base_map[row-1][col] == '.' && table[row-1][col] <= 0){

					North = K;
				}else{

					North = table[row-1][col]-1;
				}
			}
			if(col > 0){
				if(base_map[row][col-1] == '.' && table[row][col-1] <= 0){

					West = K;

				}else{

					West = table[row][col-1]-1;
				}

			}
			table[row][col] = max(North,West);
		}
	}

	if(table[H-1][W-1] > 0){

		printf("Chieno\n");

	}else{

		printf("Cacao\n");
	}

	return 0;
}

