# Exercice 1
# a)

x_A = int(input("Abscisse de A ? "))
y_A = int(input("Ordonnée de A ? "))
x_B = int(input("Abscisse de B ? "))
y_B = int(input("Ordonnée de B ? "))

x_M = (x_A + x_B)/2
y_M = (y_A + y_B)/2

print(x_M, y_M)

# b)

x_A = int(input("Abscisse de A ? "))
y_A = int(input("Ordonnée de A ? "))
x_B = int(input("Abscisse de B ? "))
y_B = int(input("Ordonnée de B ? "))

dist_x = x_B - x_A
dist_y = y_B - y_A

x_S = x_A + 2*dist_x
y_S = y_A + 2*dist_y

print(x_S, y_S)

# Exercice 2

n = int(input("Dividende ? "))
d = int(input("diviseur ? "))
print(n, "=", d, "x", n//d, "+", d%n)
# print(str(n) + " = " + str(d) + " x " + str(n//d) + " + " + str(d%n))

# Exercice 3

# 1
a = 123
b = 456
temp = a
a = b
b = temp

# 2
a = 123
b = 456
a = a + b
b = a - b
a = a - b


# Exercice 4

nom = input("Quel est votre nom ? ")
prenom = input("Quel est votre prénom ? ")
print("Bonjour, votre nom est", nom , "et votre prénom est" , prenom, ".")
