Japan, Germany agree to carefully monitor markets