Get first digit of a number

I have a numeric question about version of questionnaire where the interviewer enters a number of 6 digits, for example: 229001.
1/ How I can get the first digit of this number? I mean I need to get digit 2.
2/ How I can get the two last digit of that number?. I mean I need to get “01”.

The purpose is to set the activation condition for the appearance of a section.

Many thanks for your help…

See here

Thank you very much for your direction.