영어도 없고 폴란드어만 있고 브5라서 풀어봤는데 피봄;;

구글 번역기로 영어로 돌려보면(한글이 더 번역똥이라)


문제

Julka surprised her teacher in kindergarten yesterday by solving the following puzzle:


Klaudia and Natalia have 10 apples together, but Klaudia has 2 apples more than Natalia. How many apples does each girl have?

Julka answered without thinking: Klaudia has six apples, while Natalia has four apples.


The educators decided to check if Julka's answer was not accidental and repeated the puzzle, each time increasing the number of apples in the task. Julia always answered correctly. The surprised tutor wanted to continue Julka's "study", but with very large numbers she could not solve the puzzle quickly. Help your kindergarten teacher and write a program that will suggest her solutions.


Write a program that:


reads (from the standard input) the number of apples that both girls have together and how many more apples Klaudia has,

will calculate how many apples Klaudia has and how many apples Natalia has,

writes the result (to the standard output).


입력

The entrance consists of two lines. The first line contains the number of all apples owned by the girls, while the second line shows the number of how many apples Klaudia has. Both numbers are integer and positive. It is known that girls have no more than 10100 (one and one hundred zeros) apples together. As you can see, apples can be very tiny.


출력
Your program should write (to the standard output) two integers in two consecutive lines, one per line. The first line should contain the number of Klaudia apples, while the second line should contain the number of Natalia apples. It is known that girls always have whole apples.

일단 파이썬 소스코드 첨부하면
a = int(input())
b = int(input())
print (int((a+b)/2))
print (int((a-b)/2))
로 8퍼에서 틀렸다고함

방정식으로 풀었고 나도 풀면서 의문인점은

전체 사과 수 + Klaudia가 더 많이 가진 사과 수

가 홀수가 되면 이 방정식은 성립이 안되고 출력도 성립이 안됨(출력은 integers라고...)

푼 사람 소스 길이보니깐 나랑 길이 얼추 비슷한데 어디서 잘못 접근했는지 모르겠다.

백준 사이트 댓글에 달아줄게