Result

WA

Duration

1048ms

Code [DL]

i=lambda:int(input())
y=i()
x=i()
c="*"
t=[c*x]
print("\n".join(t+[c+" "*(x-2)+c]*y+t))

stdin

26
35

stdout

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

stderr