Problem: 

Input

The input contains a single integer a (0 ≤ a ≤ 35).

Output

Output a single integer.

Examples

Input

3


Output

8


Input

10


Output

1024

Solution (in JAVA):

Solution:
import java.io.BufferedInputStream;
import java.io.InputStream;
import java.io.PrintWriter;

/**
 * Created by peter.bykov on 18.04.2016.
 */
public class Archive656A {
    private void solve() throws Exception {
        int n = input.nextInt();
        System.out.print(n < 13 ? 1<<n : 8092l<<n-13);
    }

    private boolean isSimple(int a, int b) {
        while(b > 0) {
            int c = a;
            a = b;
            b = c % b;
        }
        return a != 1;
    }

    final PrintWriter output = new PrintWriter(System.out);
    final Parser input;
    final static int mod107 = 1000000007;

    public static void main(String[] args) throws Exception {
        Archive656A m = new Archive656A();
        m.solve();
        m.output.flush();
    }

    public Archive656A() throws Exception {
        input = new Parser(System.in);
    }

    static class Parser {
        final private int BufferSize = 65536,
                Init = 0;
        private BufferedInputStream bis;
        private byte read;
        private int BufferPointer, BufferEnd;
        private byte[]
                buffer = new byte[BufferSize];

        Parser(InputStream in) throws Exception {
            bis = new BufferedInputStream(in);
            BufferPointer = 0;
            BufferEnd = bis.read(buffer, Init, BufferSize);
        }

        public int nextInt() throws Exception {
            int num = 0;
            read = readNext();
            while (read <= ' ') read = readNext();
            boolean neg = read == '-';
            if (neg) read =
                    readNext();
            do {
                num = num * 10 + (read - '0');
                read = readNext();
            } while (read > ' ');
            if (neg) return -num;
            return
                    num;
        }

        public long nextLong() throws Exception {
            long num = 0L;
            read = readNext();
            while (read <= ' ') read = readNext();
            boolean neg = read == '-';
            if (neg) read = readNext();
            do {
                num = num * 10 + (read - '0');
                read = readNext();
            } while
                    (read > ' ');
            if (neg) return -num;
            return num;
        }

        public char nextChar() throws Exception {
            read = readNext();
            while
                    (read <= ' ') read = readNext();
            return (char) read;
        }

        public String nextString() throws Exception {
            StringBuffer
                    sb = new StringBuffer("");
            read = readNext();
            while (read <= ' ') read = readNext();
            do {
                sb.append((char) read);
                read = readNext();
            } while (read > ' ');
            return sb.toString();
        }

        private byte readNext() throws Exception {
            if (
                    BufferPointer == BufferEnd) fillBuffer();
            return buffer[BufferPointer++];
        }

        private void fillBuffer() throws
                Exception {
            BufferPointer = Init;
            BufferEnd = bis.read(buffer, Init, BufferSize);
            if (BufferEnd == -1) buffer[0] = -1;
        }
    }
}