Electronic device and input/output method thereof