Create program that reads a two-local Hamiltonian standard input as a string and outputs a matrix.