Module a

Expand description

ยงABC 379 A - Cyclic

refs: https://atcoder.jp/contests/abc379/tasks/abc379_a

use proconio::{input, marker::Chars};

fn main() {
    input! {
        n: Chars,
    }

    println!(
        "{} {}",
        [n[1], n[2], n[0]].iter().collect::<String>(),
        [n[2], n[0], n[1]].iter().collect::<String>()
    );
}