import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); int r = sc.nextInt(); int a = 0; for(int i = 1; i <= 200; i++) { if(i * i > 2 * r * r) { a = i; break; } } int ans = Math.max(Math.abs(x + y + a), Math.abs(x + y - a)); System.out.println(ans); } }