# -*- coding: utf-8 -*- ''' 実行方法: python main.py < input.txt input.txtの中身: 1 2 3 4 5 6 A B C 7 8 9 ''' import sys arr = [] while 1: s = sys.stdin.readline() if len(s) == 0: break arr.append(s.split()) arr = zip(*arr) print('\n'.join(' '.join(e) for e in arr))