Problem: The employees of the R1 company often spend time together: they watch football, they go camping, they solve contests. So, it's no big deal that sometimes someone pays for someone else.

Today is the day of giving out money rewards. The R1 company CEO will invite employees into his office one by one, rewarding each one for the hard work this month. The CEO knows who owes money to whom. And he also understands that if he invites person x to his office for a reward, and then immediately invite person y, who has lent some money to person x, then they can meet. Of course, in such a situation, the joy of person x from his brand new money reward will be much less. Therefore, the R1 CEO decided to invite the staff in such an order that the described situation will not happen for any pair of employees invited one after another.

However, there are a lot of employees in the company, and the CEO doesn't have a lot of time. Therefore, the task has been assigned to you. Given the debt relationships between all the employees, determine in which order they should be invited to the office of the R1 company CEO, or determine that the described order does not exist.

Input

The first line contains space-separated integers n and m <image> — the number of employees in R1 and the number of debt relations. Each of the following m lines contains two space-separated integers ai, bi (1 ≤ ai, bi ≤ n; ai ≠ bi), these integers indicate that the person number ai owes money to a person a number bi. Assume that all the employees are numbered from 1 to n.

It is guaranteed that each pair of people p, q is mentioned in the input data at most once. In particular, the input data will not contain pairs p, q and q, p simultaneously.

Output

Print -1 if the described order does not exist. Otherwise, print the permutation of n distinct integers. The first number should denote the number of the person who goes to the CEO office first, the second number denote the person who goes second and so on.

If there are multiple correct orders, you are allowed to print any of them.

Examples

Input

2 1
1 2


Output

2 1 


Input

3 3
1 2
2 3
3 1


Output

2 1 3 

Solution (in JAVA):

Solution:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.*;

/**
 * Created by fangxue.zhang on 2014/4/18.
 */
public class CodeforcesRunner {


    public static void main(String[] args) throws IOException{

        //A
//        input.init(System.in);
//        int n = input.nextInt(), k = input.nextInt();
//
//        String slogan = input.next();
//
//        if(k <= n / 2){
//            while(k > 1){
//                System.out.println("LEFT");
//                k -= 1;
//            }
//            for(int i = 0; i < slogan.length(); i++){
//                System.out.println("PRINT " + slogan.substring(i,i + 1));
//                if(i != slogan.length() - 1) System.out.println("RIGHT");
//            }
//
//        }else{
//            while(k < n){
//                System.out.println("RIGHT");
//                k += 1;
//            }
//            for(int i = slogan.length() - 1; i >= 0; i--){
//                System.out.println("PRINT " + slogan.substring(i,i + 1));
//                if(i != 0) System.out.println("LEFT");
//            }
//
//        }

//b
//        input.init(System.in);
//
//        int n = input.nextInt();
//        int k = input.nextInt();
//
//        List<Integer> list = new ArrayList<Integer>();
//
//        for(int i = 0; i < n; i++){
//            list.add(input.nextInt());
//        }
//
//        Collections.sort(list);
//
//        //for(Integer i : list) System.out.println(i);
//
//        System.out.println(list.get(n - k));


//        input.init(System.in);
//
//        int n = input.nextInt();
//
//        List<String> list = new ArrayList<String>();
//
//        for(int i = 0; i < n; i++) list.add(input.next());
//
//        int len = list.get(0).length();
//       // System.out.println(len);
//
//        for(int i = 0; i < len; i++){
//
//            Map<Character, Integer> map = new HashMap<Character, Integer>();
//            int cnt = 0;
//            char res = 'a';
//            for(int j = 0; j < n; j++){
//                res = list.get(j).charAt(i);
//                if(map.containsKey(res)) {
//                    int val = map.get(res);
//                    map.put(res, val + 1);
//                }
//                else map.put(res, 1);
//            }
//
//            if(map.size() > 2){
//                System.out.print("?");
//                continue;
//            }
//            if(map.size() == 2){
//                if(map.containsKey('?')){
//                    Iterator iter = map.entrySet().iterator();
//                    while (iter.hasNext()) {
//                        Map.Entry entry = (Map.Entry) iter.next();
//                        Character c = (Character)entry.getKey();
//                        if(!c.equals('?')){
//                            System.out.print(c);
//                            break;
//                        }
//                    }
//                }
//                else {
//                    System.out.print("?");
//                }
//                continue;
//            }
//            if(map.containsKey(new Character('?'))) System.out.print('a');
//            else{
//                Iterator iter = map.entrySet().iterator();
//                while (iter.hasNext()) {
//                    Map.Entry entry = (Map.Entry) iter.next();
//                    Character c = (Character)entry.getKey();
//                    if(!c.equals('?')){
//                        System.out.print(c);
//                        break;
//                    }
//                }
//            }
//
//            //System.out.println(i);
//
//        }

//        input.init(System.in);
//
//        String str = input.next();
//
//        int len = str.length();
//
//        long ans = 0;
//        for(int i = 0; i < len; i++){
//            if(str.charAt(i) == '@'){
//                boolean ok = true;
//                int pos = -1;
//                for(int j = i + 1; j < len; j++){
//                    if(isletter(str.charAt(j)) || isdigit(str.charAt(j))) continue;
//                    if(str.charAt(j) == '@' || str.charAt(j) == '_') {
//                        ok = false;
//                        break;
//                    }
//                    if(str.charAt(j) == '.'){
//                        pos = j;
//                        break;
//                    }
//                }
//                if(!ok) continue;
//                if(pos == -1) break; //not find
//                if(pos == i + 1) continue;
//
//                int b = 0;
//                for(int j = pos + 1; j < len; j++){
//                    if(isletter(str.charAt(j))){
//                        b += 1;
//                        continue;
//                    }else break;
//                }
//
//                if(b == 0) continue;
//
//                int a = 0;
//                for(int j = i - 1; j >= 0; j--){
//                    char c = str.charAt(j);
//                    if(isletter(c)) a += 1;
//                    if(c == '@' || c =='.') break;
//                }
//
//                if(a == 0) continue;
//
//                ans += (long)a * (long)b;
//
//            }
//        }
//
//        System.out.println(ans);


        input.init(System.in);

        int n = input.nextInt(), m = input.nextInt();

        List<Map<Integer, Integer>>  mapList = new ArrayList<Map<Integer, Integer>>();

        for(int i = 0; i <= n; i++) mapList.add(new HashMap<Integer, Integer>());

        for(int i = 0; i < m; i++){
            int a = input.nextInt(), b = input.nextInt();
            mapList.get(a).put(b, 0);
        }

        int[] array = new int[n + 1];

        array[1] = 1;

        for(int i = 2; i <= n; i++){
            array[i] = i;
            for(int j = i - 1; j >= 1; j--){
                if(mapList.get(array[j]).containsKey(i)){
                    swap(array, j);
                }
                else break;
            }
        }

        for(int i = 1; i <= n; i++){
            System.out.print(array[i] + " ");
        }

    }

    public static void swap(int[] array, int idx){
        int tmp = array[idx];
        array[idx] = array[idx + 1];
        array[idx + 1] = tmp;

    }

    public static boolean isletter(char c){
        return c >= 'a' && c <= 'z';
    }
    public static  boolean isdigit(char c){
        return c >= '0' && c <= '9';
    }


    public static class input {
        static BufferedReader reader;
        static StringTokenizer tokenizer;

        /** call this method to initialize reader for InputStream */
        static void init(InputStream input) {
            reader = new BufferedReader(
                    new InputStreamReader(input) );
            tokenizer = new StringTokenizer("");
        }

        /** get next word */
        static String next() throws IOException {
            while ( ! tokenizer.hasMoreTokens() ) {
                //TODO add check for eof if necessary
                tokenizer = new StringTokenizer(
                        reader.readLine() );
            }
            return tokenizer.nextToken();
        }

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

        static double nextDouble() throws IOException {
            return Double.parseDouble( next() );
        }
        static long nextLong() throws IOException {
            return Long.parseLong( next() );
        }
    }

}