use freopen in codeeval