while (s := input('Bir yazı giriniz:')) != 'quit': print(s[::-1])