- define variables, `ugly` initialisation -

If you want something to be long, better to declare it long in the first place. However, you can cast if necessary so this:

microlis1 = gugus1 * gugus2 * 1L;

should work like this:

microlis1 = (long)gugus1 * (long)gugus2 * 1L;