import numpy

input_number=tuple(map(int,raw_input().strip().split()))
print numpy.zeros(input_number, dtype = numpy.int)
print numpy.ones(input_number, dtype = numpy.int)

1a2246fe699d98506c820b9fb08b844e708469d7
import numpy

input_number=tuple(map(int,raw_input().strip().split()))
print numpy.zeros(input_number, dtype = numpy.int)
print numpy.ones(input_number, dtype = numpy.int)
