Under construction

Still being built. Things may change

SUAPC 2023 Summer

Time limit1sMemory limit1024 MB

Summary
Given N, output the solved count and total penalty of the Nth-place team on the SUAPC 2023 Summer scoreboard, which is a lookup from the image.
Level

Easy1 of 10

Topics
Implementation
Solved
No attempts yet

Problem

[Figure] SUAPC 2023 Summer scoreboard

SUAPC is a programming contest for undergraduate students and first-year graduate students at five universities in Sinchon: Sogang, Sookmyung, Yonsei, Ewha, and Hongik. The contest problems follow the problem-setting style of the Seoul Regional. Teams are ranked by how many problems they solve correctly within the time limit. The image above is the scoreboard of SUAPC 2023 Summer.

Teams that solve more problems rank higher. If several teams solve the same number of problems, the team with the smaller total penalty ranks higher. The rightmost number on the scoreboard above is the total penalty of each team's solved problems.

The penalty for a solved problem is (time of the first accepted submission) + (number of wrong submissions before the first accepted submission) × 20.

Given a positive integer NN, find the number of problems solved and the total penalty of the team that placed NNth in SUAPC 2023 Summer.

Input

The first line contains a positive integer NN. (1≤N≤111 \le N \le 11)

Output

Print the number of problems solved and the total penalty of the team that placed NNth in SUAPC 2023 Summer, separated by a space.

Examples3

  1. Example 1

    Input
    1
    
    Expected output
    12 1600
    
  2. Example 2

    Input
    2
    
    Expected output
    11 894
    
  3. Example 3

    Input
    3
    
    Expected output
    11 1327