class Solution {
public:
string convertToTitle(int columnNumber) {
string ans="";
while(columnNumber--){
ans+=columnNumber%26+'A';
columnNumber/=26;
}
reverse(ans.begin(),ans.end());
return ans;
}
};