#PCBNAM0000014. Dấu phẩy kèm khoảng trắng (Comma-Separated Integers with Spaces)
Dấu phẩy kèm khoảng trắng (Comma-Separated Integers with Spaces)
Comma-Separated Integers with Spaces
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Two integers and are provided on one line, separated by a comma. There may be multiple spaces after the comma. Convert both fields to integers, then print them on one line separated by a single space.
Input
One line contains , a comma, and ; whitespace may surround the two integers.
Output
Print the two integer values and , separated by exactly one space.
Subtasks
- Subtask 1 — 100 points: .
Examples
Input
-7, +0
Output
-7 0
Explanation
Calling split(",") produces two strings, "-7" and " +0". The int() conversion produces and accepts both the leading spaces and the plus sign in the second token, producing integer . The output is -7 0, without a comma.