This is giving wrong output help Please

import java.util.Scanner;
public class Gradebook {
public static void main(String args[]){
Scanner a= new Scanner(System.in);
//System.out.println("asd",a.nextLine());
int num1;
int num2;
int sum;
System.out.println("Entre first number");
num1=a.nextInt();
System.out.println("Entre second number");
num2=a.nextInt();

sum=num1=num2;
System.out.println(sum);




}

}