Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- //import java.lang.String;
- public class Main {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- String str=new String(sc.next());
- char[] chars=str.toCharArray();
- String temp="";
- for (int i = 0; i <str.length() ; i++) {
- if(temp.contains(chars[i]+"")==false){
- temp+=chars[i];
- }
- }
- if(temp.contains("helo")==true){
- System.out.println("YES");
- }
- else{
- System.out.println("NO");
- }
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement