-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNewClass2.java
25 lines (21 loc) · 888 Bytes
/
NewClass2.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package codeforces;
import java.util.Collections;
import java.util.Scanner;
import java.util.Vector;
public class NewClass2 {
public static void main(String[] args) {
Scanner ob = new Scanner(System.in);
int n=ob.nextInt();
if(n<=2)
{
System.out.println(-1);
}
else
{
for(int i=n;i>0;i--)
{
System.out.print(i+" ");
}
}
}
}