fork(1) download
  1. def i(n):q=len(n);z=('|'+' '*(2+q)+'|\n')*-(-q//2);print(z+'| '+n+' |\n'+z)
  2. exec("i(input());"*3)
Success #stdin #stdout 0.02s 9936KB
stdin
:D
^_^
ಠ_ಠ
stdout
|    |
| :D |
|    |

|     |
|     |
| ^_^ |
|     |
|     |

|     |
|     |
| ಠ_ಠ |
|     |
|     |