AnnaTolstoy/mellinae | AnnaTolstoy/dogernout | ||||
---|---|---|---|---|---|
f | 1 | import sys | f | 1 | import sys |
t | 2 | L = int(input()) | t | 2 | n = int(input()) |
3 | txt = sys.stdin.read().replace('\n ', ' @ ').split() | 3 | s = sys.stdin.read().replace('\n ', ' @ ').split() | ||
4 | new_txt = ' '.join(txt[0:L]) | 4 | s = ' '.join(s[:n]) | ||
5 | new_txt = new_txt.replace('@', '\n ') | 5 | s = s.replace(' @ ', '\n ') | ||
6 | print(new_txt) | 6 | print(s) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|