use std::io;

fn main() {
    let stdin = io::stdin();
    let mut buf = String::new();
    stdin.read_line(&mut buf).expect("");
    let m: i32 = buf.trim().parse().expect("");
    println!("{}", 24 + 24 - m);
}
