import java.util.*;
public class Main
{
public static void main(String[] args)
{
int n, abs;
System.out.print("Enter a number: ");
n = Integer.parseInt(new Scanner(System.in).nextLine());
if (n < 0)
{
abs = -n;
}
else
{
abs = n;
}
System.out.printf("Absolute valor is %1$s" + "\r\n", abs);
abs = n < 0 ? -n : n;
System.out.printf("And also %1$s" + "\r\n", abs);
}
}