($a,$b)=glob<>;print$b%3?$b%3>1?"0 $a":-$a.$".-$a:"$a 0"