Answer:
Step-by-step explanation:
The language I use would do it as
h1$ = copy(h$,1,3)
This may not satisfy you, because your language could be quite different. You might want an input statement of some kind that would define h$. This assumes that somewhere h,h1 are declared as strings.
You also have to know how to read an input. My language uses readln(input,h)
and how to write it on the screen write(h1) or writeln(h1)