include "primitives.alh"

String function revert_string(a : String):
	Integer length
	length = string_len(a)

	Integer counter
	counter = 0

	String result
	result = ""

	while (counter < length):
		result = string_join(string_get(a, counter), result)
		counter = counter + 1

	return result

Void function main():
	while (True):
		output(revert_string(input()))
