while true do
	line = gets.chomp
	if line == "q" then
		break;
	end
	printf( "%s\n" , line );
end