No clue why it doesn't work
package pl.codegym.task.task04.task0413;
/*
Dzień tygodnia
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String x = reader.readLine();
int a = Integer.parseInt(x);
if(a == 1){
System.out.println("Poniedzałek");}
else if(a==2){
System.out.println("Wtorek");}
else if(a==3){
System.out.println("Środa");}
else if(a==4){
System.out.println("Czwartek");}
else if(a==5){
System.out.println("Piątek");}
else if(a==6){
System.out.println("Sobota");}
else if(a==7){
System.out.println("Niedziela");}
else {
System.out.println("Nie ma takiego dnia tygodnia");}
}
}