n = 300000 print(n) print('1 ' * n) print(n) print(f'1 {n}\n' * n)