use std::io::*; fn main() { let mut s: String = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let mut itr = s.trim().split_whitespace(); let mut x: f64 = itr.next().unwrap().parse().unwrap(); let mut y: f64 = itr.next().unwrap().parse().unwrap(); let r: f64 = itr.next().unwrap().parse().unwrap(); if x < 0.0 { x *= -1.0; } if y < 0.0 { y *= -1.0; } let cos45 = (std::f64::consts::PI / 4.0).cos(); let ans = x + (cos45 * r * 2.0).ceil() + y; println!("{}", ans); }