import numpy as np
a, b = (np.array(input().split(), dtype=int) for _ in range(2))
print(np.inner(a, b), np.outer(a, b), sep='\n')

7df076ef12ab73638fb0c6b74d89c439df58899f
<mask token>

<mask token>
print(np.inner(a, b), np.outer(a, b), sep='\n')

<mask token>
a, b = (np.array(input().split(), dtype=int) for _ in range(2))
print(np.inner(a, b), np.outer(a, b), sep='\n')

import numpy as np
a, b = (np.array(input().split(), dtype=int) for _ in range(2))
print(np.inner(a, b), np.outer(a, b), sep='\n')
