Language: Java

public class Main
{
	public static void main(String[] args)
	{
		Reader reader = new Reader();
		OutputStream out = new BufferedOutputStream(System.out);
      	int n = reader.nextInt();
      	int r = reader.nextInt();
      	if(n < 10)
          r -= 100 * (10-n);
		out.write(("" + r).getBytes());
		out.flush();
	}
	static class Reader {
        final private int BUFFER_SIZE = 1 << 16;
        private DataInputStream din;
        private byte[] buffer;
        private int bufferPointer, bytesRead;
        public Reader() {
            din = new DataInputStream(System.in);
            buffer = new byte[BUFFER_SIZE];
            bufferPointer = bytesRead = 0;
        }
        public int nextInt() throws IOException {
            int ret = 0;
            byte c = read();
            while (c <= ' ') {
                c = read();
            }
            do {
                ret = ret * 10 + c - '0';
            } while ((c = read()) >= '0' && c <= '9');
            return ret;
        }
        public long nextLong() throws IOException {
            long ret = 0;
            byte c = read();
            while (c <= ' ') {
                c = read();
            }
            do {
                ret = ret * 10 + c - '0';
            } while ((c = read()) >= '0' && c <= '9');
            return ret;
        }

        private void fillBuffer() throws IOException
        {
            bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
            if (bytesRead == -1) {
                buffer[0] = -1;
            }
        }

        private byte read() throws IOException
        {
            if (bufferPointer == bytesRead) {
                fillBuffer();
            }
            return buffer[bufferPointer++];
        }
    }
}

Compiler output:
Main.java:16: error: cannot find symbol
        private DataInputStream din;
                ^
  symbol:   class DataInputStream
  location: class Reader
Main.java:24: error: cannot find symbol
        public int nextInt() throws IOException {
                                    ^
  symbol:   class IOException
  location: class Reader
Main.java:35: error: cannot find symbol
        public long nextLong() throws IOException {
                                      ^
  symbol:   class IOException
  location: class Reader
Main.java:47: error: cannot find symbol
        private void fillBuffer() throws IOException
                                         ^
  symbol:   class IOException
  location: class Reader
Main.java:55: error: cannot find symbol
        private byte read() throws IOException
                                   ^
  symbol:   class IOException
  location: class Reader
Main.java:6: error: cannot find symbol
		OutputStream out = new BufferedOutputStream(System.out);
		^
  symbol:   class OutputStream
  location: class Main
Main.java:6: error: cannot find symbol
		OutputStream out = new BufferedOutputStream(System.out);
		                       ^
  symbol:   class BufferedOutputStream
  location: class Main
Main.java:20: error: cannot find symbol
            din = new DataInputStream(System.in);
                      ^
  symbol:   class DataInputStream
  location: class Reader
8 errors