print'x7441544231'[input()]