def get_main_version(version=None):
version = get_complete_version(version)<EOL>parts = <NUM_LIT:2> if version[<NUM_LIT:2>] == <NUM_LIT:0> else <NUM_LIT:3><EOL>return '<STR_LIT:.>'.join(str(x) for x in version[:parts])<EOL>
Returns main version (X.Y[.Z]) from VERSION.