why not working this shit ?
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String sX = reader.readLine();
int x = Integer.parseInt(sX);
if(x < 1 || x > 7)
System.out.println("такого дня недели не существует");
else if(x == 1)
System.out.println("понедельник");
else if(x == 2)
System.out.println("втроник");
else if(x == 3)
System.out.println("среда");
else if(x == 4)
System.out.println("четверг");
else if(x == 5)
System.out.println("пятница");
else if(x == 6)
System.out.println("суббота");
else
System.out.println("воскресенье");
}
}