#K77777. Block Order
Block Order
Block Order
Given a word, determine the order in which its blocks should be placed to form the word. Each block corresponds to one letter and the blocks are numbered starting from 1. Formally, if the input word has length (n), the expected output is the sequence (1, 2, \ldots, n). For example, if the input is hello (which has 5 letters), the output should be 1 2 3 4 5.
inputFormat
The input consists of a single line containing a word (a string). The word may contain only alphabetic characters. There is no extra input.
outputFormat
Output a sequence of block indices separated by a single space. The first block has index 1, the second 2, and so on until the length of the word. For example, if the word has 5 characters, output: 1 2 3 4 5.## sample
a
1