1014B switched back to cout implementation, added ios::sync_with_stdio(false)