/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
double aspect_ratio = 17.0 / 7.0;
int image_width = 400;
int image_height = (int)(image_width / aspect_ratio);
double viewport_height = 2.0;
double viewport_width = viewport_height * image_width / image_height;
System.
out.
printf("Aspect ratio: %f\n", aspect_ratio
); System.
out.
printf("Image: %d x %d\n", image_width, image_height
); System.
out.
printf("Viewport: %f x %f\n", viewport_width, viewport_height
); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCWRvdWJsZSBhc3BlY3RfcmF0aW8gPSAxNy4wIC8gNy4wOwoJCWludCBpbWFnZV93aWR0aCA9IDQwMDsKCgkJaW50IGltYWdlX2hlaWdodCA9IChpbnQpKGltYWdlX3dpZHRoIC8gYXNwZWN0X3JhdGlvKTsKCiAgICAJZG91YmxlIHZpZXdwb3J0X2hlaWdodCA9IDIuMDsKICAgIAlkb3VibGUgdmlld3BvcnRfd2lkdGggPSB2aWV3cG9ydF9oZWlnaHQgKiBpbWFnZV93aWR0aCAvIGltYWdlX2hlaWdodDsKCgkJU3lzdGVtLm91dC5wcmludGYoIkFzcGVjdCByYXRpbzogJWZcbiIsIGFzcGVjdF9yYXRpbyk7CgkgICAgU3lzdGVtLm91dC5wcmludGYoIkltYWdlOiAlZCB4ICVkXG4iLCBpbWFnZV93aWR0aCwgaW1hZ2VfaGVpZ2h0KTsKCSAgICBTeXN0ZW0ub3V0LnByaW50ZigiVmlld3BvcnQ6ICVmIHggJWZcbiIsIHZpZXdwb3J0X3dpZHRoLCB2aWV3cG9ydF9oZWlnaHQpOwoJfQp9