Problem: Problem

Chieno and Cacao are sisters who work in the same coffee shop. The two are very close, and one day they decided to play a table game.

The game uses the board of R square x C square and the rabbit TP as a piece. Each square on the board is painted white or black. First, place the TP in the lower right corner (R, C) of the board, and the two perform the following actions alternately. Assuming that the current position of TP is (a, b), one jumpable position (i, j) is selected from there, and TP is made to jump there. The positions (i, j) where TP can jump satisfy all of the following.

1. 1 ≤ i ≤ R and 1 ≤ j ≤ C and i ≤ a and j ≤ b and 1 ≤ (a-i) + (b-j) ≤ K
2. (i, j) is a white square



If you can no longer jump TP on your turn, you lose.

Chieno is on the play and Cacao is on the play. Cacao can look ahead to the end of the game in his head and always behaves optimally. At this time, determine if there is a way for Chieno to win.

Constraints

* 1 ≤ R, C ≤ 1000
* 1 ≤ K ≤ 2000
* GR and C are “.”

Input

The input is given in the following format.


R C K
G1,1 G1,2 ... G1,C
G2,1 G2,2 ... G2, C
::
GR, 1 GR, 2 ... GR, C


The first line is given three integers R, C, K separated by blanks. C "." Or "#" are given as board information in the next R line. Gi, j represents the color of the board position (i, j), "." Represents white, and "#" represents black.

Output

Print "Chieno" if there is a way for Chieno to win, or "Cacao" if it doesn't.

Examples

Input

3 3 2
...
...
...


Output

Chieno


Input

3 3 2
.#
.#.
..


Output

Cacao

Solution (in CPP):

Solution:
#include <string>
#include <vector>
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<stack>
#include<queue>
#include<cmath>
#include<algorithm>
#include<functional>
#include<list>
#include<deque>
#include<bitset>
#include<set>
#include<map>
#include<unordered_map>
#include<cstring>
#include<sstream>
#include<complex>
#include<iomanip>
#include<numeric>
#define X first
#define Y second
#define pb push_back
#define rep(X,Y) for (int (X) = 0;(X) < (Y);++(X))
#define rrep(X,Y) for (int (X) = (Y-1);(X) >=0;--(X))
#define repe(X,Y) for ((X) = 0;(X) < (Y);++(X))
#define peat(X,Y) for (;(X) < (Y);++(X))
#define all(X) (X).begin(),(X).end()
#define rall(X) (X).rbegin(),(X).rend()

using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
//template<class T> using vv=vector<vector<T>>;
template<class T> ostream& operator<<(ostream &os, const vector<T> &t) {
os<<"{"; rep(i,t.size()) {os<<t[i]<<",";} os<<"}"<<endl; return os;}
template<class S, class T> ostream& operator<<(ostream &os, const pair<S,T> &t) { return os<<"("<<t.first<<","<<t.second<<")";}

int sum[1123][1123],sumd[1123][1123],lose[1123][1123],n,m,t;

int Sum(int y,int x){
  int re=sum[y][x];
  //cout<<pii(x,y)<<endl;
  if(x-t-2>=0)
    re+=sumd[y+1][x-t-2];
  //cout<<re<<",";
  if(y-t>=0){
    if(y-t)re-=sum[y-t-1][x];
    if(x)re-=sumd[y-t][x-1];
  }else{
    if(x-t+y)re-=sumd[0][x-t+y-1];
  }
  //cout<<re<<endl;
  return re;
}

int main(){
  ios_base::sync_with_stdio(false);
  cout<<fixed<<setprecision(0);
  int i,j,k;
  cin>>n>>m>>t;
  vector<string> mp(n);
  rep(i,n)
    cin>>mp[i];
  rep(j,m)rep(i,n){
    if(Sum(i,j)==0&&mp[i][j]=='.'){
      lose[i][j]=1;
      ++sum[i][j];
      ++sumd[i][j];
    }
    sumd[i][j+1]+=sumd[i][j];
    if(i){
      sumd[i-1][j+1]+=sumd[i][j];
      sumd[i-1][j+2]-=sumd[i][j];
    }
    sum[i+1][j]+=sum[i][j];
    sum[i][j+1]+=sum[i][j];
    sum[i+1][j+1]-=sum[i][j];
  }
  //rep(i,n){rep(j,m)cout<<lose[i][j];cout<<endl;}
  //rep(i,n){rep(j,m)cout<<sum[i][j]<<",";cout<<endl;}
  //rep(i,n){rep(j,m)cout<<sumd[i][j]<<",";cout<<endl;}
  cout<<(lose[n-1][m-1]?"Cacao":"Chieno")<<endl;
  return 0;
}