#!/usr/local/bin/lua

-- local count = 0  
while true do
	local line  = io.read()
	if line == nil then break end
	print ("Received", line)
	print ("Current time is ", os.date("%c"))
	print "OK"
	io.flush()
--	count = count + 1
end
