by@sio_tet
AC
1076ms
h,w=int(input())-2,int(input())-2
for c in'*'+' '*h+'*':print('*'+c*w+'*')20 61
************************************************************* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *************************************************************