aspect_ratio = 17.0 / 7.0
image_width = 400
image_height = int(image_width / aspect_ratio)
viewport_height = 2
viewport_width = viewport_height * image_width / image_height
print("Aspect ratio:", aspect_ratio)
print("Image:", image_width, "x", image_height)
print("Viewport:", viewport_width, "x", viewport_height)
YXNwZWN0X3JhdGlvID0gMTcuMCAvIDcuMAppbWFnZV93aWR0aCA9IDQwMAoKaW1hZ2VfaGVpZ2h0ID0gaW50KGltYWdlX3dpZHRoIC8gYXNwZWN0X3JhdGlvKQoKdmlld3BvcnRfaGVpZ2h0ID0gMgp2aWV3cG9ydF93aWR0aCA9IHZpZXdwb3J0X2hlaWdodCAqIGltYWdlX3dpZHRoIC8gaW1hZ2VfaGVpZ2h0CgpwcmludCgiQXNwZWN0IHJhdGlvOiIsIGFzcGVjdF9yYXRpbykKcHJpbnQoIkltYWdlOiIsIGltYWdlX3dpZHRoLCAieCIsIGltYWdlX2hlaWdodCkKcHJpbnQoIlZpZXdwb3J0OiIsIHZpZXdwb3J0X3dpZHRoLCAieCIsIHZpZXdwb3J0X2hlaWdodCkK