#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define gcd(a,b) __gcd(a,b)
#define lcm(a,b) (a*b)/gcd(a,b)
#define ff first
#define ss second
#define p pair<int,int>
#define pb push_back
#define endl '\n'
#define w(t) ll test;cin>>test;while(test--)
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(0);
#define pi acos(-1)
struct str{
    int ax,ay,bx,by;
};
int main()
{
    fast;
    int h,w;
    cin>>h>>w;
    vector<str>ans;
    int a[h+5][w+5];
    for(int i=0;i<h;i++)
    {
        for(int j=0;j<w;j++)
        {
           cin>>a[i][j];

        }
    }
    for(int i=0;i<h;i++)
    {
        for(int j=0;j<w-1;j++)
        {
            if(a[i][j]&1)
            {
                a[i][j+1]++;
                ans.pb({i+1,j+1,i+1,j+2});
            }
            else continue;
        }
        if(i==h-1)continue;
        if(a[i][w-1]&1)
        {
            a[i+1][w-1]++;
            ans.pb({i+1,w,i+2,w});
        }
    }
    cout<<ans.size()<<endl;
    for(auto i:ans)
    {
        cout<<i.ax<<" "<<i.ay<<" "<<i.bx<<" "<<i.by<<endl;
    }
}


#include <bits/stdc++.h>
#define ri register
#define int long long
using namespace std; const int N=200010;
inline int read()
{
    int s=0, w=1; ri char ch=getchar();
    while(ch<'0'||ch>'9') { if(ch=='-') w=-1; ch=getchar(); }
    while(ch>='0'&&ch<='9') s=(s<<3)+(s<<1)+(ch^48), ch=getchar();
    return s*w;
}
int h,w;
char s[60][60];
signed main()
{
    h=read(), w=read();
    for(ri int i=1;i<=h;i++) scanf("%s",s[i]+1);
    for(ri int i=1;i<=h;i++)
    for(ri int j=1;j<=w;j++)
    if(s[i][j]=='#')
    {
        if(s[i-1][j]!='#'&&s[i+1][j]!='#'&&s[i][j-1]!='#'&&s[i][j+1]!='#')
        {
            puts("No");
            return 0;
        }
    }
    puts("Yes");
    return 0;
}