import java.util.ArrayList;
public class Main {
public static void main
(final String[] args
) { for (int n = 1; n <= 100; n++) {
System.
out.
println(new M
(n
).
fizz().
buzz().
seven().
eleven().
weakString()); }
}
}
class M {
final int n;
final ArrayList<String> ms;
M(final int n) {
this.n = n;
this.ms = new ArrayList<>();
}
M fizz() {
return h(3, "Fizz");
}
M buzz() {
return h(5, "Buzz");
}
M seven() {
return h(7, "Seven");
}
M eleven() {
return h(11, "Eleven");
}
M h
(final int i,
final String m
) { if ((n % i) == 0) {
ms.add(m);
}
return this;
}
if (ms.size() == 1) {
return ms.get(0);
} else {
}
}
if (ms.size() > 0) {
final StringBuilder b = new StringBuilder();
b.append(m);
}
return b.toString();
} else {
}
}
}
aW1wb3J0IGphdmEudXRpbC5BcnJheUxpc3Q7CgpwdWJsaWMgY2xhc3MgTWFpbiB7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihmaW5hbCBTdHJpbmdbXSBhcmdzKSB7CiAgICAgICAgZm9yIChpbnQgbiA9IDE7IG4gPD0gMTAwOyBuKyspIHsKICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKG5ldyBNKG4pLmZpenooKS5idXp6KCkuc2V2ZW4oKS5lbGV2ZW4oKS53ZWFrU3RyaW5nKCkpOwogICAgICAgIH0KICAgIH0KfQoKY2xhc3MgTSB7CiAgICBmaW5hbCBpbnQgbjsKICAgIGZpbmFsIEFycmF5TGlzdDxTdHJpbmc+IG1zOwoKICAgIE0oZmluYWwgaW50IG4pIHsKICAgICAgICB0aGlzLm4gPSBuOwogICAgICAgIHRoaXMubXMgPSBuZXcgQXJyYXlMaXN0PD4oKTsKICAgIH0KCiAgICBNIGZpenooKSB7CiAgICAgICAgcmV0dXJuIGgoMywgIkZpenoiKTsKICAgIH0KCiAgICBNIGJ1enooKSB7CiAgICAgICAgcmV0dXJuIGgoNSwgIkJ1enoiKTsKICAgIH0KCiAgICBNIHNldmVuKCkgewogICAgICAgIHJldHVybiBoKDcsICJTZXZlbiIpOwogICAgfQoKICAgIE0gZWxldmVuKCkgewogICAgICAgIHJldHVybiBoKDExLCAiRWxldmVuIik7CiAgICB9CgogICAgTSBoKGZpbmFsIGludCBpLCBmaW5hbCBTdHJpbmcgbSkgewogICAgICAgIGlmICgobiAlIGkpID09IDApIHsKICAgICAgICAgICAgbXMuYWRkKG0pOwogICAgICAgIH0KICAgICAgICByZXR1cm4gdGhpczsKICAgIH0KCiAgICBTdHJpbmcgc3Ryb25nU3RyaW5nKCkgewogICAgICAgIGlmIChtcy5zaXplKCkgPT0gMSkgewogICAgICAgICAgICByZXR1cm4gbXMuZ2V0KDApOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIHJldHVybiBTdHJpbmcudmFsdWVPZihuKTsKICAgICAgICB9CiAgICB9CgogICAgU3RyaW5nIHdlYWtTdHJpbmcoKSB7CiAgICAgICAgaWYgKG1zLnNpemUoKSA+IDApIHsKICAgICAgICAgICAgZmluYWwgU3RyaW5nQnVpbGRlciBiID0gbmV3IFN0cmluZ0J1aWxkZXIoKTsKICAgICAgICAgICAgZm9yIChmaW5hbCBTdHJpbmcgbSA6IG1zKSB7CiAgICAgICAgICAgICAgICBiLmFwcGVuZChtKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gYi50b1N0cmluZygpOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIHJldHVybiBTdHJpbmcudmFsdWVPZihuKTsKICAgICAgICB9CiAgICB9Cgp9