m, n = map(int,input().split())
 

quotient = int(m/n)
remainder = m%n

print(quotient, remainder)

정리

map

map은 리스트의 요소를 지정된 함수로 처리해주는 함수다. map("자료형", x) → x객체의 결과를 리스트의 요소를 “자료형”으로 변환

input().split()

여러 개의 값을 입력받을 때 사용한다.