代码

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: a2htray
# create date: 2023/3/5

"""
PAT 乙级 1017
"""

if __name__ == '__main__':
    a, b = map(int, input().split(' '))

    print(a // b, a % b)