Why I passed this in my PC with IDLE(Python GUI), but the same solution failed in checkio with the same input?