def f(x,y):a="="*(4*y+1);print(a+"\n="+" ="*y+"\n")*x+a
def test(x, y):
print 'x='+str(x)+', y='+str(y)
print '---------------'
f(x,y)
print '---------------'
test(1,1)
test(1,2)
test(2,2)
test(2,5)
test(9,9)
ZGVmIGYoeCx5KTphPSI9IiooNCp5KzEpO3ByaW50KGErIlxuPSIrIiAgID0iKnkrIlxuIikqeCthCiAKZGVmIHRlc3QoeCwgeSk6CglwcmludCAneD0nK3N0cih4KSsnLCB5PScrc3RyKHkpCglwcmludCAnLS0tLS0tLS0tLS0tLS0tJwoJZih4LHkpCglwcmludCAnLS0tLS0tLS0tLS0tLS0tJwogCnRlc3QoMSwxKQp0ZXN0KDEsMikKdGVzdCgyLDIpCnRlc3QoMiw1KQp0ZXN0KDksOSk=
x=1, y=1
---------------
=====
= =
=====
---------------
x=1, y=2
---------------
=========
= = =
=========
---------------
x=2, y=2
---------------
=========
= = =
=========
= = =
=========
---------------
x=2, y=5
---------------
=====================
= = = = = =
=====================
= = = = = =
=====================
---------------
x=9, y=9
---------------
=====================================
= = = = = = = = = =
=====================================
= = = = = = = = = =
=====================================
= = = = = = = = = =
=====================================
= = = = = = = = = =
=====================================
= = = = = = = = = =
=====================================
= = = = = = = = = =
=====================================
= = = = = = = = = =
=====================================
= = = = = = = = = =
=====================================
= = = = = = = = = =
=====================================
---------------