import java.util.*;
class Yugi{
protected int[] arr;
public Yugi(int[] arr){
this.arr = arr;
}
public void out(){
System.out.println(Arrays.toString(arr));
}
}
class SortYugi extends{
public void sort(){
Arrays.sort(arr);
}
}
class ReverseYugi extends{
public void reverse(){
for(int i = 0; i < arr.length / 2; i++){
arr[arr.length - 1 - i] = arr[i];
}
}
}