fn main() { let x = read::(); let mut p = (x * 100000000.0).round() as i64; let mut q = 100000000; let g = gcd(p, q); p /= g; q /= g; println!("{}/{}", p, q); } fn gcd(a: i64, b: i64) -> i64 { if b == 0 { return a; } gcd(b, a % b) } fn read() -> T { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); s.trim().parse().ok().unwrap() }