Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- first_string = input()
- second_string = input()
- a = zip(str.split(first_string, " "), str.split(second_string, " "))
- first = ""
- second = ""
- for i, j in a:
- s = i + " "
- if int(j) < 4:
- first += s
- else:
- second += s
- print(first[:len(first) - 1])
- print(second[:len(second) - 1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement