n = int(input()) # 构造A和B的示例 A = [99, 824, 4353] B = [0, 1, 5275] # 输出结果 print(' '.join(map(str, A))) print(' '.join(map(str, B)))