using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; using System.Diagnostics; //using nint=System.Int32; static class Program{ const int mod=(int)1e9+7; static void Main(){ Sc sc=new Sc(); var s=sc.Ia; var p=s[0]+s[1]-2; if(s[2]>1)&1)==1){ for(int j = s[1]-1;j>0;j-=2) { if(j==g){continue;} c[i][j]='#'; if(g==-1){p+=4;} if(p==s[2]&&g==-1){g=j-2;} } } else{ for(int j = 0;j=s[2]){bo=true;} c[s[0]-3][1]='#'; for(int j = 3;j>1)&1)^1)*2][j]='#'; p+=4; } else{ bo=true; c[s[0]-3][j]='#'; } } if(s[0]/2%2==1&&s[1]/2%2==1&&!bo&&p==s[2]){ Console.WriteLine(-1); return; } } if(p(int n,Func f){var a=new T[n];for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i(){var s=Console.ReadLine().Split();return (Ct(s[0]),Ct(s[1]));} public (T,T,T) Tp3(){var s=Console.ReadLine().Split();return (Ct(s[0]),Ct(s[1]),Ct(s[2]));} public (T1,T1,T2) Tp3(){var s=Console.ReadLine().Split();return (Ct(s[0]),Ct(s[1]),Ct(s[2]));} private T Ct(string s){return (T)Convert.ChangeType(s,typeof(T));} }