Update 1989.cpp

freopen's removed