Nội dung Bài tập
Mã:
ABC171.BaiC
Tên:
ABC171.BaiC
Dạng thi:
oi
Thang điểm:
100 điểm
Giới hạn thời gian:
1 giây
Giới hạn bộ nhớ:
256 MB
Được tạo bởi:
admin

Problem Statement

1000000000000001 dogs suddenly appeared under the roof of Roger's house, all of which he decided to keep. The dogs had been numbered 1 through 1000000000000001, but he gave them new names, as follows:

  • the dogs numbered 1,2,,26 were respectively given the names ab, ..., z;
  • the dogs numbered 27,28,29,,701,702 were respectively given the names aaabac, ..., zyzz;
  • the dogs numbered 703,704,705,,18277,18278 were respectively given the names aaaaabaac, ..., zzyzzz;
  • the dogs numbered 18279,18280,18281,,475253,475254 were respectively given the names aaaaaaabaaac, ..., zzzyzzzz;
  • the dogs numbered 475255,475256, were respectively given the names aaaaaaaaab, ...;
  • and so on.

To sum it up, the dogs numbered 1,2, were respectively given the following names:

ab, ..., zaaab, ..., azbabb, ..., bz, ..., zazb, ..., zzaaaaab, ..., aazabaabb, ..., abz, ..., zzzaaaa, ...

Now, Roger asks you:

"What is the name for the dog numbered N?"

Constraints

  • N is an integer.
  • 1N1000000000000001

Input

Input is given from Standard Input in the following format:

N

Output

Print the answer to Roger's question as a string consisting of lowercase English letters.


Sample Input 1 Copy

Copy
2

Sample Output 1 Copy

Copy
b

Sample Input 2 Copy

Copy
27

Sample Output 2 Copy

Copy
aa

Sample Input 3 Copy

Copy
123456789

Sample Output 3 Copy

Copy
jjddja


    Quảng cáo
       Ngôn ngữ : 

       Theme : 
Mời bạn soạn code



		



      Ai có thể xem bài này : 

Thông tin



Phần thảo luận