Chemical composition of relativistic cosmic rays detected above the atmosphere