public static void main(String[] args) {
    String map="0123456789`!@#$%^&*(){}\\<>?";
    Scanner in=new Scanner(System.in); while (in.hasNext()){
        StringBuffer res=new StringBuffer(); long data=in.nextLong(); long x=0; while (data/27>0){
            x=data%27;
            data=data/27;
            res.append(map.charAt((int)x));
        }
        res.append(map.charAt((int)data%27));
        StringBuffer ans=new StringBuffer(); for (int i=res.length()-1;i>=0;i--){
            ans.append(res.charAt(i));
        }
        System.out.println(ans);
    }
}