#include <iostream>
using namespace std;
int vis[100];
int c[3][3]={0 , 1, 2, 0 ,0 , 4, 0 , 0 , 0};
int flow=0;
int sink;
int s;
int n;
int dfs(int x,int low)
{
if (x==sink)return low;
if (vis [x])return 0;
vis [x]=true;
for(int i=0,flow;i<n;i++)
if (c[x ][ i]&&(flow=dfs(i,low <?c[x][i])))
{
c[x][i]-=flow; c[i][x]+=flow;
return flow;
}
return 0;
}