import java.util.*;enum M{M;System z;{for(Scanner s=new Scanner(z.in);z==z;)z.out.println(s.next().matches("/(.*)(/.*\\1.*){2}")?"No":"Yes");}}