Java Program Input And Output Definition Math