import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;

class Main {

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

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));
            abcSwap(input);

            StringBuilder result = new StringBuilder();
            for (int i = 0; i < input.size(); i++) {
                if (i == input.size() - 1) {
                    result.append(input.get(i));
                } else {
                    result.append(input.get(i)).append(" ");
                }
            }
            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }

    private static void abcSwap(List<String> input) {
        String tmp = input.get(1);
        // A and B swap
        input.set(1, input.get(0));
        input.set(0, tmp);

        // A and C swap
        tmp = input.get(2);
        input.set(2, input.get(0));
        input.set(0, tmp);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util import java.util.List; List java.util class Main {

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

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));
            abcSwap(input);

            StringBuilder result = new StringBuilder();
            for (int i = 0; i < input.size(); i++) {
                if (i == input.size() - 1) {
                    result.append(input.get(i));
                } else {
                    result.append(input.get(i)).append(" ");
                }
            }
            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }

    private static void abcSwap(List<String> input) {
        String tmp = input.get(1);
        // A and B swap
        input.set(1, input.get(0));
        input.set(0, tmp);

        // A and C swap
        tmp = input.get(2);
        input.set(2, input.get(0));
        input.set(0, tmp);
    }
} Main public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));
            abcSwap(input);

            StringBuilder result = new StringBuilder();
            for (int i = 0; i < input.size(); i++) {
                if (i == input.size() - 1) {
                    result.append(input.get(i));
                } else {
                    result.append(input.get(i)).append(" ");
                }
            }
            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } main {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));
            abcSwap(input);

            StringBuilder result = new StringBuilder();
            for (int i = 0; i < input.size(); i++) {
                if (i == input.size() - 1) {
                    result.append(input.get(i));
                } else {
                    result.append(input.get(i)).append(" ");
                }
            }
            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));
            abcSwap(input);

            StringBuilder result = new StringBuilder();
            for (int i = 0; i < input.size(); i++) {
                if (i == input.size() - 1) {
                    result.append(input.get(i));
                } else {
                    result.append(input.get(i)).append(" ");
                }
            }
            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } IOException | NumberFormatException e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } final Exception e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));
            abcSwap(input);

            StringBuilder result = new StringBuilder();
            for (int i = 0; i < input.size(); i++) {
                if (i == input.size() - 1) {
                    result.append(input.get(i));
                } else {
                    result.append(input.get(i)).append(" ");
                }
            }
            System.out.println(result);
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) List<String> input = Arrays.asList(br.readLine().split(" ")); input Arrays.asList(br.readLine().split(" ")) Arrays.asList Arrays br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " abcSwap(input) abcSwap input StringBuilder result = new StringBuilder(); result new StringBuilder() for (int i = 0; i < input.size(); i++) {
                if (i == input.size() - 1) {
                    result.append(input.get(i));
                } else {
                    result.append(input.get(i)).append(" ");
                }
            } int i = 0; int i = 0; i 0 i < input.size() i input.size() input.size input i++ i++ i {
                if (i == input.size() - 1) {
                    result.append(input.get(i));
                } else {
                    result.append(input.get(i)).append(" ");
                }
            } {
                if (i == input.size() - 1) {
                    result.append(input.get(i));
                } else {
                    result.append(input.get(i)).append(" ");
                }
            } if (i == input.size() - 1) {
                    result.append(input.get(i));
                } else {
                    result.append(input.get(i)).append(" ");
                } i == input.size() - 1 i input.size() - 1 input.size() input.size input 1 {
                    result.append(input.get(i));
                } result.append(input.get(i)) result.append result input.get(i) input.get input i {
                    result.append(input.get(i)).append(" ");
                } result.append(input.get(i)).append(" ") result.append(input.get(i)).append result.append(input.get(i)) result.append result input.get(i) input.get input i " " System.out.println(result) System.out.println System.out System System.out result String[] args args private static void abcSwap(List<String> input) {
        String tmp = input.get(1);
        // A and B swap
        input.set(1, input.get(0));
        input.set(0, tmp);

        // A and C swap
        tmp = input.get(2);
        input.set(2, input.get(0));
        input.set(0, tmp);
    } abcSwap {
        String tmp = input.get(1);
        // A and B swap
        input.set(1, input.get(0));
        input.set(0, tmp);

        // A and C swap
        tmp = input.get(2);
        input.set(2, input.get(0));
        input.set(0, tmp);
    } String tmp = input.get(1); tmp input.get(1) input.get input 1 input.set(1, input.get(0)) input.set input 1 input.get(0) input.get input 0 input.set(0, tmp) input.set input 0 tmp tmp = input.get(2) tmp input.get(2) input.get input 2 input.set(2, input.get(0)) input.set input 2 input.get(0) input.get input 0 input.set(0, tmp) input.set input 0 tmp List<String> input input
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;

class Main {

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

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));
            abcSwap(input);

            StringBuilder result = new StringBuilder();
            for (int i = 0; i < input.size(); i++) {
                if (i == input.size() - 1) {
                    result.append(input.get(i));
                } else {
                    result.append(input.get(i)).append(" ");
                }
            }
            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }

    private static void abcSwap(List<String> input) {
        String tmp = input.get(1);
        // A and B swap
        input.set(1, input.get(0));
        input.set(0, tmp);

        // A and C swap
        tmp = input.get(2);
        input.set(2, input.get(0));
        input.set(0, tmp);
    }
}