import sys
input = sys.stdin.readline
print("|"+input()+"|")
print("|"+input()+"|")
