← Home
package main

import (
	"bufio"
	"fmt"
	"os"
)

func main() {
	in := bufio.NewReader(os.Stdin)
	var s, t string
	fmt.Fscan(in, &s, &t)

	b := []byte(s)
	for i := len(b) - 1; i >= 0; i-- {
		if b[i] < 'z' {
			b[i]++
			for j := i + 1; j < len(b); j++ {
				b[j] = 'a'
			}
			break
		}
	}

	next := string(b)
	if next < t {
		fmt.Println(next)
	} else {
		fmt.Println("No such string")
	}
}