---
# System prepended metadata

title: Untitled

---

```
package s1261101_hw3;
import java.util.Scanner;

public class S1261101_hw3 {
    public static void main(String[] args) {
    
        Scanner sc = new Scanner(System.in);
        int []imp = new int [3];
        int temp =0;// temo means temparay store
        
        for(int i=0;i<3;i++){
        imp[i] = sc.nextInt();
        }
        
        for(int i=0;i<3;i++){
            int n = 3;
            for (int j= i+1;j<n;j++){
                if(imp[i]<imp[j]){
                    temp = imp[i];
                    imp[i]=imp[j];
                    imp[j]=temp;
                    
                }
            }
        }  
        
        System.out.println();
        
        for(int u=0;u<3;u++){
        System.out.println(imp[u]);
        }
    }
    
}

```