Some attempt to use System.in but cannot work