import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
Scanner in
= new Scanner
(System.
in); double L1, L, m, cm, mm;
L1 = in.nextDouble();
L = L1 * 25.4;
m
= Math.
floor(L
/ 1000); cm
= Math.
floor((L
- 1000*m
) / 10); mm = L - 1000*m - 10*cm;
System.
out.
format("%.0f дюймов = %.0f м %.0f см %.2f мм", L1, m, cm, mm
); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJZG91YmxlIEwxLCBMLCBtLCBjbSwgbW07CgkJTDEgPSBpbi5uZXh0RG91YmxlKCk7CgkJTCA9IEwxICogMjUuNDsKCQkKCQltID0gTWF0aC5mbG9vcihMIC8gMTAwMCk7CgkJY20gPSBNYXRoLmZsb29yKChMIC0gMTAwMCptKSAvIDEwKTsKCQltbSA9IEwgLSAxMDAwKm0gLSAxMCpjbTsKCQlTeXN0ZW0ub3V0LmZvcm1hdCgiJS4wZiDQtNGO0LnQvNC+0LIgPSAlLjBmINC8ICAlLjBmINGB0LwgICUuMmYg0LzQvCIsIEwxLCBtLCBjbSwgbW0pOwoJfQp9