A compression test will help determine if it is valves or rings.
Run the test, remember to open any valve that restricts air flow to the engine. Next, squirt a couple of shot of oil into the two bad cyls. Then test again. If the compression comes up noticeably then it is your rings that are bad. If the compression doesn't change than it is your valves.