void setup() {
  Serial.begin(9600); // Initialize serial communication
}

void loop() {
  int itamar; // Variable to store the received number

  // Prompt the user to enter a number
  Serial.println("בחר מספר"); // !!!

  // Wait until a number is entered
  while (!Serial.available()) {
    // Wait for input
  }

  // Read the number from the serial buffer
  itamar = Serial.parseInt(); // !!!

  // Print the entered number back to the serial monitor
  Serial.print("בחרת במספר:"); //!!!
  Serial.println(itamar); //!!!
  Serial.print("\n"); //!!!

  // Clear the serial buffer by reading and discarding any remaining characters
  while (Serial.available()) {
    Serial.read();
  }

 digitalWrite(8, HIGH); //!!!
 delay(itamar);         //!!!
 digitalWrite(8, LOW);  //!!!

}