Problem:
Score : 100 points

Problem Statement

Snuke has a favorite restaurant.

The price of any meal served at the restaurant is 800 yen (the currency of Japan), and each time a customer orders 15 meals, the restaurant pays 200 yen back to the customer.

So far, Snuke has ordered N meals at the restaurant.
Let the amount of money Snuke has paid to the restaurant be x yen, and let the amount of money the restaurant has paid back to Snuke be y yen.
Find x-y.

Constraints

1 ≤ N ≤ 100

Input

The input is given from Standard Input in the following format:

N

Output

Print the answer.

Sample Input 1

20

Sample Output 1

15800

So far, Snuke has paid 16000 yen, and the restaurant has paid back 200 yen. Thus, the answer is 15800.

Sample Input 2

60

Sample Output 2

47200

Snuke has paid 48000 yen for 60 meals, and the restaurant has paid back 800 yen.

Solution in Rust (1.15.1) (judge verdict: Runtime Error)

macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut iter = $s.split_whitespace();
        input_inner!{iter, $($r)*}
    };
    ($($r:tt)*) => {
        let s = {
            use std::io::Read;
            let mut s = String::new();
            std::io::stdin().read_to_string(&mut s).unwrap();
            s
        };
        let mut iter = s.split_whitespace();
        input_inner!{iter, $($r)*}
    };
}

macro_rules! input_inner {
    ($iter:expr) => {};
    ($iter:expr, ) => {};

    ($iter:expr, $var:ident : $t:tt $($r:tt)*) => {
        let $var = read_value!($iter, $t);
        input_inner!{$iter $($r)*}
    };
}

macro_rules! read_value {
    ($iter:expr, ( $($t:tt),* )) => {
        ( $(read_value!($iter, $t)),* )
    };

    ($iter:expr, [ $t:tt ; $len:expr ]) => {
        (0..$len).map(|_| read_value!($iter, $t)).collect::<Vec<_>>()
    };

    ($iter:expr, chars) => {
        read_value!($iter, String).chars().collect::<Vec<char>>()
    };

    ($iter:expr, usize1) => {
        read_value!($iter, usize) - 1
    };

    ($iter:expr, $t:ty) => {
        $iter.next().unwrap().parse::<$t>().expect("Parse error")
    };
}


fn next_animal(cond: char, a0: char, a1: char) -> char {
    if cond == 'o' {
        if a1 == 'S' && a0 == 'S' {
            'S'
        } else if a1 == 'S' && a0 == 'W' {
            'W'
        } else if a1 == 'W' && a0 == 'S' {
            'W'
        } else  {
            'S'
        }
    } else {
        if a1 == 'S' && a0 == 'S' {
            'W'
        } else if a1 == 'S' && a0 == 'W' {
            'S'
        } else if a1 == 'W' && a0 == 'S' {
            'S'
        } else  {
            'W'
        }
    }
}








fn solve(s: Vec<char>) -> Vec<char> {
    let s1 = vec!['S', 'S'];
    let s2 = vec!['W', 'W'];
    let s3 = vec!['W', 'S'];
    let s4 = vec!['S', 'W'];
    let mut results = vec![s1, s2, s3, s4];

    for i in 2..s.len() {
        let cond = s[i-1];
        for j in 0..4 {
            let a0 = results[j][i-2];
            let a1 = results[j][i-1];
            let next = next_animal(cond, a0, a1);
            results[j].push(next)
        }
    }


    let len = s.len();
    let cond = s[len-1];
    for r in results {
        let a0 = r[len-2];
        let a1 = r[len-1];
        if next_animal(cond, a0, a1) == r[0] {
            return r
        }
    }
    return vec![];


}


fn main() {
    input! {
        n: i64,
        s: chars,
    }
    let result = solve(s);
    if result.is_empty() {
        println!("-1");
    }
    for c in result {
        print!("{}", c);
    }
    println!("");
}