A - Status Code
Source: atcoder
Difficulty: 100

Problem Statement
You are given an integer
S
between
100
and
999
(inclusive).
If
S
is between
200
and
299
(inclusive), print
Success
; otherwise, print
Failure
.
Constraints
100 \le S \le 999
S
is an integer.
Input
The input is given from Standard Input in the following format:
S
Output
Print the answer.
Sample Input 1
200
Sample Output 1
Success
200
is between
200
and
299
, so print
Success
.
Sample Input 2
401
Sample Output 2
Failure
401
is not between
200
and
299
, so print
Failure
.
Sample Input 3
999
Sample Output 3
Failure

C++ solution:
#include <bits/stdc++.h>
using namespace std;
using P=pair<int,int>;
typedef long long ll;

int main(){
  string s;cin >> s;
  cout << (s.at(0)=='2' ? "Success":"Failure") << endl;
}

Go solution:
package main

import "fmt"

func main(){
  var s int
  
  fmt.Scan(&s)
  
  if s >= 200 && s <= 299 {
    fmt.Println("Success")
  } else {
    fmt.Println("Failure")
  }
}

Java solution:
import java.io.*;
import java.util.*;



public class Main {
    static final int mod = 1000000007;
    static final long MOD = 998244353;
    static InputReader in = new InputReader(System.in);
    static PrintWriter out = new PrintWriter(System.out, false);

    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public int nextInt() {
            return Integer.parseInt(next());
        }

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public String nextLine() throws IOException {

            return reader.readLine();
        }

        public long nextLong() {
            return Long.parseLong(next());
        }

        public double nextDouble() {
            return Double.parseDouble(next());
        }
        public int[] nextIntArray(int n) throws IOException {
            int[] arr = new int[n];
            for (int i = 0; i < n; i++) {
                arr[i] = in.nextInt();
            }
            return arr;
        }
        public int[] randomIntArray(int n) {
            Random random = new Random();
            int[] arr = new int[n];
            for (int i = 0; i < n; i++) {
                arr[i] = random.nextInt(100) + 1;
            }
            return arr;
        }
        public long randLong() {
            Random random = new Random();
            return random.nextInt(1000);
        }
        public int randInteger() {
            Random random = new Random();
            return random.nextInt(1000);
        }
    }

    public static void main(String[] args) throws Exception {
        Main main = new Main();
        int T = 1;
        //T = in.nextInt();
        while (T-- > 0) {
            main.solve();
        }

        out.flush();
    }



    void solve() throws Exception {
        int s = in.nextInt();
        if(200 <= s && s <= 299){
            out.println("Success");
        }else {
            out.println("Failure");
        }
    }



}

JavaScript solution:
process.stdin.setEncoding('utf8');
var input_stdin = "";
var input_stdin_array = "";
var input_currentline = 0;
process.stdin.on('data', function (data) {
    input_stdin += data;
});

process.stdin.on('end', function () {
    input_stdin_array = input_stdin.split("\n");
    main();
});

function readLine() {
    return input_stdin_array[input_currentline++];
}

function solution(n){
  if(n>=200&&n<=299) return "Success"
  return "Failure"

}
    
function main() {
    // let t = parseInt(readLine());
    let t = 1;
    while(t--){
        let n = parseInt(readLine());
        let res = solution(n);
        console.log(res);
    }
}

Python solution:
S = int(input())
if 200 <= S and S <= 299:
    print("Success")
else:
    print("Failure")

Ruby solution:
s = gets.to_i

if s >= 200 && s <= 299
  puts 'Success'
else
  puts 'Failure'
end