I wrote :

```
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Test1 {

    public static void main(String[] args) {

        try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

            String sn = reader.readLine();
            String sx = reader.readLine();

            int n = Integer.parseInt(sn);
            double x = Double.parseDouble(sx);

            double sum = 0;

            for (int i = 0; i < n; i++) {
                x = Math.sin(x);
                sum += x;
            }

            System.out.println("Sum is: " + sum);
        } catch (Exception e) {
        }
    }
}

```

But lecturer said, that this code wrong