Port from yinduzhanxing 5fb8379c (MIT): Naisargika, Kaala, Karaka, Tara, Lagnamsaka, Yogardha, Mandooka, Paryaaya and Padanadhamsa dashas; Sarvatobhadra, Kota and Kalanala chakras; Nakshatra Latta; Pachakadi; Raman Amsayu and Pindayu. Producers and their upstream tests are copied; scripts/upstream_technique_layers.py feeds them our natal and transit positions and attaches chart.consultation_native_layers.upstream_techniques. - dasha_registry: kaala and padanadhamsa keys (35 -> 37); the nine ported dashas are served by compute_dasha or fail closed with upstream's reason. - technique_registry.json: 16 partial entries; README badges follow. - Evidence lookup section `upstream_techniques` in the consultation tool. - Boundaries: Kalanala carries no PyJHora (AGPL) grid coordinates; Padanadhamsa/Lagnamsaka run on our Narayana engine (no Rath Table 12, PVR co-lord variants or second cycle). PyJHora observers and the Amsayu worked-example scaffold live in scripts/research (root .py budget). - PyJHora black-box cross-checks: Naisargika (lords/years) and Kaala (seed segment and fraction within 5e-4) on a public chart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
368 lines
21 KiB
Python
368 lines
21 KiB
Python
"""Native, source-named SBC Vedha and explicit natal/thematic target matching.
|
|
|
|
PVR chapter26.8 Figure3; no external UI code or name-to-Sanskrit guessing.
|
|
"""
|
|
import argparse
|
|
from copy import deepcopy
|
|
from fractions import Fraction
|
|
import json
|
|
from pathlib import Path
|
|
import sys
|
|
|
|
if __package__ in (None, ''):
|
|
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
|
from scripts.ayanamsa_utils import normalize_ayanamsa_name
|
|
|
|
SOURCE = 'https://vedicastrologer.org/articles/vedic_astro_textbook.pdf'
|
|
MOTION_SOURCE = 'https://astropankajseth.co.in/2019/01/sarvatobhadra-chakra-lesson-4/'
|
|
PVR_PROFILE = 'sarvatobhadra_pvr26_three_rays_v1'
|
|
MOTION_PROFILE = 'sarvatobhadra_pvr_grid_seth2019_motion_v1'
|
|
PVR_LONGITUDE_PROFILE = 'sarvatobhadra_pvr_last_quarter_uttarashadha_v1'
|
|
PLANETS = ('Sun', 'Moon', 'Mars', 'Mercury', 'Jupiter', 'Venus', 'Saturn', 'Rahu', 'Ketu')
|
|
STARS = ('Ashwini','Bharani','Krittika','Rohini','Mrigashira','Ardra',
|
|
'Punarvasu','Pushya','Ashlesha','Magha','Purva Phalguni','Uttara Phalguni',
|
|
'Hasta','Chitra','Swati','Vishakha','Anuradha','Jyeshtha','Mula',
|
|
'Purva Ashadha','Uttara Ashadha','Shravana','Dhanishtha','Shatabhisha',
|
|
'Purva Bhadrapada','Uttara Bhadrapada','Revati','Abhijit')
|
|
SIGNS = ('Aries','Taurus','Gemini','Cancer','Leo','Virgo','Libra','Scorpio',
|
|
'Sagittarius','Capricorn','Aquarius','Pisces')
|
|
# Coordinate facts from Figure3, north up/east right. SBC IDs1..27 ordinary,28 Abhijit.
|
|
# v=vowel, c=consonant, r=rashi, t=tithi group; plain integer is nakshatra.
|
|
GRID = (
|
|
('v:ii',23,24,25,26,27,1,2,'v:a'),
|
|
(22,'v:rr','c:g','c:s','c:d','c:ch','c:l','v:u',3),
|
|
(28,'c:kh','v:ai','r:11','r:12','r:1','v:lr','v:a',4),
|
|
(21,'c:j','r:10','v:ah','t:4','v:o','r:2','c:v',5),
|
|
(20,'c:bh','r:9','t:3','t:5','t:1','r:3','c:k',6),
|
|
(19,'c:y','r:8','v:am','t:2','v:au','r:4','c:h',7),
|
|
(18,'c:n','v:e','r:7','r:6','r:5','v:lrr','c:dd',8),
|
|
(17,'v:r','c:t','c:r','c:p','c:tt','c:m','v:uu',9),
|
|
('v:i',16,15,14,13,12,11,10,'v:aa'),
|
|
)
|
|
# Figure3's Rohini inner box is the vowel a (अ), despite its non-diagonal location.
|
|
# Distinguish it from the NE corner vowel a by coordinates; it is not a consonant.
|
|
TITHI_GROUPS = ('Nanda','Bhadra','Jaya','Rikta','Poorna')
|
|
WEEKDAYS = {1:('Sunday','Tuesday'),2:('Monday','Wednesday'),3:('Thursday',),
|
|
4:('Friday',),5:('Saturday',)}
|
|
VOWEL_PAIRS = (('a','aa'),('i','ii'),('u','uu'),('r','rr'),('lr','lrr'))
|
|
CONSONANT_PAIRS = (('b','v'),('s','sh'),('kh','ss'),('j','y'),('ng','tr'))
|
|
EXTRA_CONSONANTS = {6:('g','chh','ng'),13:('h','nn','tth'),
|
|
20:('dh','ph','ddh'),26:('th','jh','nch')}
|
|
CORNER = {2:(4,'a'),3:(1,'a'),9:(4,'aa'),10:(1,'aa'),
|
|
16:(4,'i'),17:(1,'i'),22:(4,'ii'),23:(1,'ii')}
|
|
|
|
|
|
def _int(value, maximum, name):
|
|
if type(value) is not int or not 1 <= value <= maximum:
|
|
raise ValueError(f'{name} must be integer1..{maximum}')
|
|
return value
|
|
|
|
|
|
def _star(value, basis):
|
|
_int(value, 27 if basis == 'nakshatra_27' else 28, 'star')
|
|
if basis == 'abhijit_ring_28':
|
|
return 28 if value == 22 else value - (value > 22)
|
|
return value
|
|
|
|
|
|
def grid_cells():
|
|
"""Return a fresh typed grid; repeated vowel a retains both source cells."""
|
|
cells = []
|
|
for row, line in enumerate(GRID):
|
|
for column, token in enumerate(line):
|
|
if type(token) is int:
|
|
kind, value, label = 'nakshatra', token, STARS[token-1]
|
|
else:
|
|
prefix, value = token.split(':')
|
|
kind = {'v':'vowel','c':'consonant','r':'rashi','t':'tithi_group'}[prefix]
|
|
if prefix in ('r','t'):
|
|
value = int(value)
|
|
label = (SIGNS[value-1] if kind == 'rashi' else
|
|
TITHI_GROUPS[value-1] if kind == 'tithi_group' else value)
|
|
cell = dict(row=row,column=column,kind=kind,value=value,label=label)
|
|
if kind == 'tithi_group':
|
|
cell['tithis'] = list(range(value,31,5))
|
|
cell['weekdays'] = list(WEEKDAYS[value])
|
|
cells.append(cell)
|
|
return cells
|
|
|
|
|
|
def _ray_steps(row, col):
|
|
# Forward/backward refer to zodiacal travel, not the viewer's left/right.
|
|
if row == 0:
|
|
return {'across':(1,0),'forward':(1,1),'backward':(1,-1)}
|
|
if col == 8:
|
|
return {'across':(0,-1),'forward':(1,-1),'backward':(-1,-1)}
|
|
if row == 8:
|
|
return {'across':(-1,0),'forward':(-1,-1),'backward':(-1,1)}
|
|
return {'across':(0,1),'forward':(-1,1),'backward':(1,1)}
|
|
|
|
|
|
def _validate_targets(targets, basis, cells):
|
|
if not isinstance(targets,list) or not targets:
|
|
raise ValueError('nonempty explicit targets list required')
|
|
allowed = {kind:{c['value'] for c in cells if c['kind']==kind}
|
|
for kind in ('vowel','consonant')}
|
|
allowed['consonant'].update(x for pair in CONSONANT_PAIRS for x in pair)
|
|
allowed['consonant'].update(x for group in EXTRA_CONSONANTS.values() for x in group)
|
|
ids, result = set(), []
|
|
for target in targets:
|
|
if not isinstance(target,dict) or set(target) != {'id','kind','value'}:
|
|
raise ValueError('each target needs exactly id, kind, value')
|
|
ident, kind, value = target['id'], target['kind'], target['value']
|
|
if not isinstance(ident,str) or not ident.strip() or ident in ids:
|
|
raise ValueError('unique nonempty target id required')
|
|
ids.add(ident)
|
|
if kind == 'nakshatra':
|
|
value = _star(value,basis)
|
|
elif kind in ('rashi','tithi'):
|
|
_int(value,12 if kind=='rashi' else 30,kind)
|
|
elif kind == 'weekday':
|
|
if not isinstance(value,str) or value not in sum(WEEKDAYS.values(),()):
|
|
raise ValueError('weekday requires English day name; supply sunrise-based day')
|
|
elif kind in allowed:
|
|
if not isinstance(value,str) or value not in allowed[kind]:
|
|
raise ValueError(f'unsupported phonetic {kind} token; no automatic transliteration')
|
|
else:
|
|
raise ValueError('unsupported target kind')
|
|
result.append(dict(id=ident,kind=kind,value=value,input_value=target['value']))
|
|
return result
|
|
|
|
|
|
def build_sarvatobhadra_report(*, stars, padas, targets, star_basis, ayanamsa,
|
|
variant_profile_id, motions=None):
|
|
"""Supplied transits, padas and natal/thematic targets; no private identity.
|
|
|
|
padas maps every supplied planet to1..4 or None. None locally blocks a
|
|
corner extension when needed, while preserving definite ray matches.
|
|
Motion composition selects normal/fast/retrograde for the five planets;
|
|
luminaries/nodes retain three rays per Seth. Stationary is unresolved.
|
|
"""
|
|
if variant_profile_id not in (PVR_PROFILE,MOTION_PROFILE):
|
|
raise ValueError('explicit supported variant_profile_id required')
|
|
if star_basis not in ('nakshatra_27','sbc_28','abhijit_ring_28'):
|
|
raise ValueError('explicit supported star_basis required')
|
|
if not isinstance(ayanamsa,str) or not ayanamsa.strip():
|
|
raise ValueError('explicit ayanamsa required')
|
|
ayanamsa = normalize_ayanamsa_name(ayanamsa)
|
|
if not isinstance(stars,dict) or not stars or not set(stars)<=set(PLANETS):
|
|
raise ValueError('nonempty named planetary stars required')
|
|
if not isinstance(padas,dict) or set(padas)!=set(stars):
|
|
raise ValueError('padas must match supplied planets; None explicitly means unknown')
|
|
for value in padas.values():
|
|
if value is not None:
|
|
_int(value,4,'pada')
|
|
if variant_profile_id==MOTION_PROFILE:
|
|
if not isinstance(motions,dict) or set(motions)!=set(stars):
|
|
raise ValueError('motion profile requires state for every supplied planet')
|
|
for planet, motion in motions.items():
|
|
valid = ('fixed_three',) if planet in ('Sun','Moon','Rahu','Ketu') else (
|
|
'normal','fast','retrograde','stationary')
|
|
if motion not in valid:
|
|
raise ValueError(f'invalid motion category for {planet}')
|
|
elif motions is not None:
|
|
raise ValueError('PVR three-ray profile does not use motion selection')
|
|
cells = grid_cells()
|
|
by_coord = {(c['row'],c['column']):c for c in cells}
|
|
star_cells = {c['value']:c for c in cells if c['kind']=='nakshatra'}
|
|
checked_targets = _validate_targets(targets,star_basis,cells)
|
|
rows = []
|
|
for planet in PLANETS:
|
|
if planet not in stars:
|
|
continue
|
|
star = _star(stars[planet],star_basis)
|
|
if star==28 and padas[planet] is not None:
|
|
raise ValueError('Abhijit pada must be None; no four-quarter definition assumed')
|
|
start = star_cells[star]
|
|
directions = list(_ray_steps(start['row'],start['column']))
|
|
blockers = []
|
|
unresolved_vowels = set()
|
|
if variant_profile_id==MOTION_PROFILE and planet not in ('Sun','Moon','Rahu','Ketu'):
|
|
directions = {'normal':['across'],'fast':['forward'],'retrograde':['backward'],
|
|
'stationary':[]}[motions[planet]]
|
|
if not directions:
|
|
blockers.append('stationary_direction_not_specified_by_source')
|
|
rays, effects = [], []
|
|
|
|
def add(kind, value, reason, coordinate=None):
|
|
effects.append(dict(kind=kind,value=value,reason=reason,coordinate=coordinate))
|
|
|
|
for direction, (dr,dc) in _ray_steps(start['row'],start['column']).items():
|
|
route = []
|
|
r, c = start['row']+dr, start['column']+dc
|
|
while 0<=r<9 and 0<=c<9:
|
|
cell = deepcopy(by_coord[r,c])
|
|
route.append(cell)
|
|
if direction in directions:
|
|
add(cell['kind'],cell['value'],direction,[r,c])
|
|
for day in cell.get('weekdays',[]):
|
|
add('weekday',day,direction,[r,c])
|
|
r, c = r+dr, c+dc
|
|
rays.append(dict(direction=direction,selected=direction in directions,cells=route))
|
|
# Ancillary phonetic/corner extensions below belong ONLY to PVR's profile.
|
|
# The motion composition deliberately exposes those as a remaining gap.
|
|
if variant_profile_id==PVR_PROFILE:
|
|
if star in CORNER:
|
|
required_pada, vowel = CORNER[star]
|
|
if padas[planet] is None:
|
|
blockers.append('corner_extension_requires_pada')
|
|
unresolved_vowels.add(vowel)
|
|
for pair in VOWEL_PAIRS:
|
|
if vowel in pair:
|
|
unresolved_vowels.update(pair)
|
|
elif padas[planet]==required_pada:
|
|
add('vowel',vowel,'corner_pada')
|
|
for value in EXTRA_CONSONANTS.get(star,()):
|
|
add('consonant',value,'central_star_extension')
|
|
for kind, pairs in (('vowel',VOWEL_PAIRS),('consonant',CONSONANT_PAIRS)):
|
|
present = {e['value'] for e in effects if e['kind']==kind}
|
|
for left,right in pairs:
|
|
if left in present:
|
|
add(kind,right,'paired_phoneme')
|
|
if right in present:
|
|
add(kind,left,'paired_phoneme')
|
|
else:
|
|
blockers.append('motion_composition_phonetic_and_corner_extensions_not_admitted')
|
|
matches = []
|
|
for target in checked_targets:
|
|
kind, value = target['kind'], target['value']
|
|
test_kind = 'tithi_group' if kind=='tithi' else kind
|
|
test_value = (value-1)%5+1 if kind=='tithi' else value
|
|
hits = [e for e in effects if e['kind']==test_kind and e['value']==test_value]
|
|
unresolved = (not directions or
|
|
(variant_profile_id==MOTION_PROFILE and kind in ('consonant','vowel')) or
|
|
(kind=='vowel' and value in unresolved_vowels))
|
|
matches.append(dict(target_id=target['id'],kind=kind,value=value,
|
|
status='hit' if hits else 'blocked' if unresolved else 'no_hit',
|
|
evidence=deepcopy(hits)))
|
|
rows.append(dict(planet=planet,input_star=stars[planet],star_index=star,
|
|
star_name=STARS[star-1],pada=padas[planet],
|
|
source_cell=[start['row'],start['column']],
|
|
occupied_target_ids=[t['id'] for t in checked_targets
|
|
if t['kind']=='nakshatra' and t['value']==star],
|
|
rays=rays,effects=effects,matches=matches,blockers=blockers))
|
|
summary = [dict(target_id=t['id'],kind=t['kind'],value=t['value'],
|
|
hit_planets=[r['planet'] for r in rows for m in r['matches']
|
|
if m['target_id']==t['id'] and m['status']=='hit'],
|
|
blocked_planets=[r['planet'] for r in rows for m in r['matches']
|
|
if m['target_id']==t['id'] and m['status']=='blocked'])
|
|
for t in checked_targets]
|
|
evidence = dict(technique='sarvatobhadra_chakra',
|
|
status='source_bounded_wired' if variant_profile_id==PVR_PROFILE else 'parameter_sensitive',
|
|
variant_profile_id=variant_profile_id,ayanamsa=ayanamsa,
|
|
star_basis=star_basis,output_star_basis='sbc_28',cells=cells,rows=rows,
|
|
targets=checked_targets,target_summary=summary,
|
|
calculation_completeness='partial' if any(r['blockers'] for r in rows) else 'complete_for_supplied_inputs',
|
|
supplied_planets=list(stars),not_supplied_planets=[p for p in PLANETS if p not in stars],
|
|
sources=[SOURCE]+([MOTION_SOURCE] if variant_profile_id==MOTION_PROFILE else []),
|
|
source_locator='PVR ch26.8 Fig3 pp357-362; Example114 and116',
|
|
source_conflicts=['PVR prose Poorna list omits25; Figure3 five-group cycle used including25.',
|
|
'Figure3 repeats vowel a in Rohini inner box; preserve it, not an invented twentieth consonant.',
|
|
'Saptarishis2009 restricted-across variant is not silently substituted.',
|
|
'Seth motion composition covers rays only; PVR extensions remain separate.'],
|
|
limits=['Supplied-star geometry; no longitude-to-Abhijit allocation or ephemeris dates.',
|
|
'Phonetic tokens are explicit; no automatic Chinese/English-name conversion.',
|
|
'Occupancy is separate from Vedha; no score, event verdict or predictive calibration.',
|
|
'Period balance,year length and subperiods are not applicable to this static Chakra.'],
|
|
global_closure_claimed=False)
|
|
lines = ['# Sarvatobhadra — target matches','',variant_profile_id,'',
|
|
'Supplied-star Vedha only; no event verdict or customer admission.', '',
|
|
'| Target | Kind/value | Hit planets | Unresolved planets |',
|
|
'| --- | --- | --- | --- |']
|
|
for item in summary:
|
|
ident = item['target_id'].replace('|','/').replace('\n',' ')
|
|
lines.append(f"| {ident} | {item['kind']}:{item['value']} | {', '.join(item['hit_planets']) or '—'} | {', '.join(item['blocked_planets']) or '—'} |")
|
|
lines += ['','## Ray evidence','', '| Planet / star | Ray | Selected | Cells (row,column; kind:value) |',
|
|
'| --- | --- | --- | --- |']
|
|
for row in rows:
|
|
for ray in row['rays']:
|
|
labels = '; '.join(f"{c['row']},{c['column']} {c['kind']}:{c['label']}" for c in ray['cells'])
|
|
lines.append(f"| {row['planet']} / {row['star_name']} | {ray['direction']} | {ray['selected']} | {labels} |")
|
|
if row['blockers']:
|
|
lines += ['',row['planet']+': '+', '.join(row['blockers'])]
|
|
lines += ['','## Supplementary effects','',
|
|
'| Planet | Kind/value | Rule |','| --- | --- | --- |']
|
|
for row in rows:
|
|
for effect in row['effects']:
|
|
if effect['coordinate'] is None:
|
|
lines.append(f"| {row['planet']} | {effect['kind']}:{effect['value']} | {effect['reason']} |")
|
|
lines += ['', 'Completeness: '+evidence['calculation_completeness'],
|
|
'Not supplied: '+(', '.join(evidence['not_supplied_planets']) or 'none')]
|
|
lines += ['','Source: '+SOURCE,'']+evidence['limits']+evidence['source_conflicts']
|
|
return dict(status=evidence['status'],customer_export_admitted=False,evidence_appendix=[evidence],
|
|
exports=dict(markdown='\n'.join(lines),ai_evidence_bundle=deepcopy(evidence)))
|
|
|
|
|
|
def build_sarvatobhadra_from_longitudes(*, longitudes, targets, target_star_basis,
|
|
ayanamsa, longitude_profile_id,
|
|
variant_profile_id, motions=None):
|
|
"""Adapt existing sidereal planetary degrees; never recalculate ayanamsa.
|
|
|
|
PVR pp10,358 defines Abhijit as last quarter of Uttarashadha. That is
|
|
[830/3,280) degrees, not the different 280deg53min20sec upper boundary.
|
|
Exact rational strings may be supplied at fractional-degree edges.
|
|
"""
|
|
if longitude_profile_id!=PVR_LONGITUDE_PROFILE:
|
|
raise ValueError('explicit PVR longitude_profile_id required')
|
|
if target_star_basis not in ('nakshatra_27','sbc_28','abhijit_ring_28'):
|
|
raise ValueError('explicit target_star_basis required')
|
|
if not isinstance(longitudes,dict) or not longitudes or not set(longitudes)<=set(PLANETS):
|
|
raise ValueError('nonempty named planetary sidereal longitudes required')
|
|
stars, padas, observations = {}, {}, []
|
|
for planet, raw in longitudes.items():
|
|
if isinstance(raw,bool) or not isinstance(raw,(int,float,str,Fraction)):
|
|
raise ValueError('longitude must be finite numeric or rational string')
|
|
try:
|
|
value=Fraction(str(raw))
|
|
except (ValueError,OverflowError,ZeroDivisionError) as exc:
|
|
raise ValueError('longitude must be finite') from exc
|
|
if not 0<=value<360:
|
|
raise ValueError('sidereal longitude must be in [0,360)')
|
|
quarter=int(value/Fraction(10,3))
|
|
ordinary_star, ordinary_pada=quarter//4+1,quarter%4+1
|
|
is_abhijit=(ordinary_star==21 and ordinary_pada==4)
|
|
stars[planet]=28 if is_abhijit else ordinary_star
|
|
padas[planet]=None if is_abhijit else ordinary_pada
|
|
observations.append(dict(planet=planet,sidereal_longitude_exact=str(value),
|
|
ordinary_star=ordinary_star,ordinary_pada=ordinary_pada,
|
|
sbc_star=stars[planet],sbc_pada=padas[planet]))
|
|
# Validate first, then convert only star targets into the adapter's SBC basis.
|
|
checked=_validate_targets(targets,target_star_basis,grid_cells())
|
|
converted=[{k:t[k] for k in ('id','kind','value')} for t in checked]
|
|
report=build_sarvatobhadra_report(stars=stars,padas=padas,targets=converted,
|
|
star_basis='sbc_28',ayanamsa=ayanamsa,
|
|
variant_profile_id=variant_profile_id,motions=motions)
|
|
e=report['evidence_appendix'][0]
|
|
e['longitude_adapter']=dict(profile_id=longitude_profile_id,observations=observations,
|
|
target_input_basis=target_star_basis,
|
|
targets=deepcopy(checked),
|
|
abhijit_interval_exact=['830/3','280'],
|
|
interval_convention='left_closed_right_open',
|
|
source=SOURCE,source_locator='pp10,358',
|
|
boundary='Supplied sidereal degrees;no ephemeris/time search or alternate Abhijit extent')
|
|
old_limit=e['limits'][0]
|
|
e['limits'][0]='Supplied sidereal degrees with explicit PVR Abhijit partition; no ephemeris dates or time search.'
|
|
report['exports']['markdown']=report['exports']['markdown'].replace(old_limit,e['limits'][0])
|
|
report['exports']['ai_evidence_bundle']=deepcopy(e)
|
|
report['exports']['markdown']+='\n\n## Longitude adapter\n\n'+longitude_profile_id+'\n\n'
|
|
report['exports']['markdown']+='| Planet | Sidereal degrees (exact) | SBC star | Pada |\n| --- | --- | --- | --- |\n'
|
|
for o in observations:
|
|
report['exports']['markdown']+=f"| {o['planet']} | {o['sidereal_longitude_exact']} | {STARS[o['sbc_star']-1]} | {o['sbc_pada']} |\n"
|
|
report['exports']['markdown']+='\nAbhijit: [830/3,280) degrees; source-specific, not a universal partition.\n'
|
|
return report
|
|
|
|
|
|
def main():
|
|
parser=argparse.ArgumentParser(description=__doc__)
|
|
parser.add_argument('--request',required=True,help='JSON request file')
|
|
parser.add_argument('--format',choices=('json','markdown'),default='json')
|
|
parser.add_argument('--input-kind',choices=('stars','longitudes'),default='stars')
|
|
args=parser.parse_args()
|
|
build=build_sarvatobhadra_report if args.input_kind=='stars' else build_sarvatobhadra_from_longitudes
|
|
report=build(**json.loads(Path(args.request).read_text(encoding='utf-8')))
|
|
print(report['exports']['markdown'] if args.format=='markdown' else json.dumps(report,ensure_ascii=False))
|
|
|
|
|
|
if __name__=='__main__':
|
|
main()
|