Result

AC

Duration

1076ms

Code [DL]

h,w=int(input())-2,int(input())-2
for c in'*'+' '*h+'*':print('*'+c*w+'*')

stdin

20
61

stdout

*************************************************************
*                                                           *
*                                                           *
*                                                           *
*                                                           *
*                                                           *
*                                                           *
*                                                           *
*                                                           *
*                                                           *
*                                                           *
*                                                           *
*                                                           *
*                                                           *
*                                                           *
*                                                           *
*                                                           *
*                                                           *
*                                                           *
*************************************************************

stderr