@@ -0,0 +1,620 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0A//https://www.hackerrank.com/challenges/mars-exploration%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        String S = in.next();%0A        int count = 0;%0A        for (int i = 0; i %3C S.length()-2; i+=3) %7B%0A            if (S.charAt(i) != 'S')%0A                count++;%0A            if (S.charAt(i+1) != 'O')%0A                count++;%0A            if (S.charAt(i+2) != 'S')%0A                count++;%0A        %7D%0A        System.out.println(count);%0A    %7D%0A%7D%0A

- strings - mars-exploration