inputing sonar code