Japan agreed to unconditional surrender.