CF125A.Measuring Lengths in Baden

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

Lengths are measures in Baden in inches and feet. To a length from centimeters it is enough to know that an inch equals three centimeters in Baden and one foot contains 12 inches.

You are given a length equal to nn centimeters. Your task is to convert it to feet and inches so that the number of feet was maximum. The result should be an integer rounded to the closest value containing an integral number of inches.

Note that when you round up, 1 cm rounds up to 0 inches and 2 cm round up to 1 inch.

输入格式

The only line contains an integer nn ( 1<=n<=100001<=n<=10000 ).

输出格式

Print two non-negative space-separated integers aa and bb , where aa is the numbers of feet and bb is the number of inches.

输入输出样例

  • 输入#1

    42
    

    输出#1

    1 2
    
  • 输入#2

    5
    

    输出#2

    0 2
    
首页