import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
String num = buffer.readLine();
int number = Integer.parseInt(num);
if(number>0)
{
number = number*2;
System.out.println(number);
}
if(number<0)
{
number = number + 1;
System.out.println(number);
}
if(number==0)
{
System.out.println(0);
}
}
}
package com.codegym.task.task04.task0412;
/*
Positive and negative numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
InputStream inputStream= System.in;
Reader inputStreamReader = new InputStreamReader(inputStream);
int number = inputStreamReader.read();
if (number > 0){
number = number*2;
System.out.println(number);
}else if (number < 0){
number = number ++;
System.out.println(number);
}else{
System.out.println(number);
}
}
}