April Fools Contest 2017 A

Description
Input

The input contains a single integer a (1 ≤ a ≤ 30).

Output

Output a single integer.

Example
input
3
output
27

那个,这个,额,查题目名称吧Numbers Joke
 1 #include<bits/stdc++.h>
 2 using namespace std;
 3 #define ll long long
 4 ll a[31]={0,4, 22, 27, 58, 85, 94, 121, 166, 202, 265, 274, 319, 346, 355, 378, 382, 391, 438, 454, 483, 517, 526, 535, 562, 576, 588, 627, 634, 636, 645,};
 5 ll n;
 6 int main()
 7 {
 8     cin>>n;
 9     cout<<a[n]<<endl;
10     return 0;
11 }

 



posted @ 2017-04-02 20:45  樱花落舞  阅读(194)  评论(0编辑  收藏  举报