#!/usr/bin/env python
# coding: utf-8

# # section 12. Numpy :  
# 
# ### writer : <NAME> 1954128

# ### 6.Eye and Identity  :

# In[ ]:


import numpy
N,M=map(int,input().split())
numpy.set_printoptions(sign=' ')
print(numpy.eye(N,M))


# 

#!/usr/bin/env python
# coding: utf-8

# # section 12. Numpy :  
# 
# ### writer : <NAME> 1954128

# ### 6.Eye and Identity  :

# In[ ]:


import numpy
N,M=map(int,input().split())
numpy.set_printoptions(sign=' ')
print(numpy.eye(N,M))


# 

#!/usr/bin/env python # coding: utf-8 # # section 12. Numpy : # # ### writer : <NAME> 1954128 # ### 6.Eye and Identity  : # In[ ]: #