Translation to and from Polish notation