You are on page 1of 1

import java.util.

*;

class Demo

public static void main(String[] args)

Scanner sc=new Scanner(System.in);

int m=sc.nextInt();

int n=sc.nextInt();

int m1=sc.nextInt();

int n1=sc.nextInt();

int x=sc.nextInt();

int y=sc.nextInt();

int a=m+m1;

int b=n+n1;

int app=m+a-x;

int ora=n+b-y;

System.out.print(app+" "+ora);

You might also like