Cosmic ray study with the PAMELA experiment