Problem: You are given a string s consisting of |s| small english letters.

In one move you can replace any character of this string to the next character in alphabetical order (a will be replaced with b, s will be replaced with t, etc.). You cannot replace letter z with any other letter.

Your target is to make some number of moves (not necessary minimal) to get string abcdefghijklmnopqrstuvwxyz (english alphabet) as a subsequence. Subsequence of the string is the string that is obtained by deleting characters at some positions. You need to print the string that will be obtained from the given string and will be contain english alphabet as a subsequence or say that it is impossible.

Input

The only one line of the input consisting of the string s consisting of |s| (1 ≤ |s| ≤ 105) small english letters.

Output

If you can get a string that can be obtained from the given string and will contain english alphabet as a subsequence, print it. Otherwise print «-1» (without quotes).

Examples

Input

aacceeggiikkmmooqqssuuwwyy


Output

abcdefghijklmnopqrstuvwxyz


Input

thereisnoanswer


Output

-1

Solution (in JAVA):

Solution:
//package codeforces.Educational;

import java.io.*;
import java.util.StringTokenizer;

/**
 * Created by Telnov Sergey on 06.03.2018.
 */
public class C {
    public static void main(String[] args) throws IOException {
        new C().run();
    }

    String str;

    boolean canChange(String template) {
        if (str.length() < template.length()) {
            return false;
        } else {
            char[] s = str.toCharArray();
            int indexTemplate = 0, indexStr = 0;
            while (indexStr != str.length() && indexTemplate != template.length()) {
                char ch = template.charAt(indexTemplate);
                if (s[indexStr] <= ch) {
                    s[indexStr] = ch;
                    indexTemplate++;
                }
                indexStr++;
            }
            str = new String(s);
            return indexTemplate == template.length();
        }
    }

    public void run() throws IOException {
        FastReader reader = new FastReader();
        str = reader.next();
        String template = "abcdefghijklmnopqrstuvwxyz";
        if (canChange(template)) {
            System.out.println(str);
        } else {
            System.out.println(-1);
        }
    }

    private static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        public FastReader(String fileName) throws IOException {
            br = new BufferedReader(new InputStreamReader(
                    new FileInputStream(fileName))
            );
        }

        public String readAllLines() throws IOException {
            StringBuilder sb = new StringBuilder();
            String line;
            while ((line = br.readLine()) != null && !line.equals("")) {
                sb.append(line);
            }
            return sb.toString();
        }

        public String next() throws IOException {
            while (st == null || !st.hasMoreElements()) {
                st = new StringTokenizer(br.readLine());
            }
            return st.nextToken();
        }

        public int nextInt() throws IOException {
            return Integer.parseInt(next());
        }

        public long nextLong() throws IOException {
            return Long.parseLong(next());
        }

        public int nextIndex() throws IOException {
            return nextInt() - 1;
        }
    }
    private static class FastWriter {
        public FastWriter() {
            bw = new BufferedWriter(
                    new OutputStreamWriter(System.out)
            );
            sb = new StringBuilder();
        }

        public FastWriter(String fileName) throws IOException {
            bw = new BufferedWriter(new OutputStreamWriter(
                    new FileOutputStream(fileName))
            );
            sb = new StringBuilder();
        }

        public void println(final int i) {
            sb.append(i).append("\n");
        }

        public void println(String line) {
            sb.append(line).append("\n");
        }

        public void println(final long l) {
            sb.append(l).append("\n");
        }

        public void print(final int i) {
            sb.append(i).append(" ");
        }

        public void close() throws IOException {
            bw.write(sb.toString());
            bw.flush();
            bw.close();
        }

        private BufferedWriter bw;
        private StringBuilder  sb;
    }
}