Bifid Cipher

Input :
Keysquare :
Note : Letter "J" will be replaced with "I"
1 2 3 4 5
1
2
3
4
5
Period :
Output :