class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.t: H = None
        self.s: G = None
        self.o: I = None
        self.v: E = None
        self.y: D = None
        self.p: D = None
        self.q: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: F = None
        self.r: G = None
        self.q: G = None
        self.p: C = None
        self.o: I = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.x: B = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: G = None
        self.x: I = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.r: D = None
        self.v: D = None
        self.s: H = None
        self.u: E = None
        self.p: C = None
        self.t: H = None
        self.o: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: G = None
        self.w: A = None
        self.p: E = None
        self.s: I = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

g = A("g")
e = B("e")
h = C("h")
a = D("a")
m = E("m")
f = F("f")
j = G("j")
c = H("c")
d = I("d")

g.z = d
g.o = d
g.t = c
g.q = c
g.s = j
g.v = m
g.y = a
g.p = a
e.v = g
e.w = f
e.r = j
e.q = j
e.p = h
e.s = h
e.o = d
h.p = d
h.x = e
h.r = g
a.y = e
a.t = j
a.x = d
a.u = m
m.z = e
f.y = d
f.r = a
f.v = a
f.o = a
f.s = c
f.t = c
f.u = m
f.p = h
j.z = m
c.q = m
c.p = m
c.y = m
c.v = j
c.w = g
c.s = d
d.u = a
assert e.w.p.x.txt == "
class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.t: H = None
        self.s: G = None
        self.o: I = None
        self.v: E = None
        self.y: D = None
        self.p: D = None
        self.q: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: F = None
        self.r: G = None
        self.q: G = None
        self.p: C = None
        self.o: I = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.x: B = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: G = None
        self.x: I = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.r: D = None
        self.v: D = None
        self.s: H = None
        self.u: E = None
        self.p: C = None
        self.t: H = None
        self.o: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: G = None
        self.w: A = None
        self.p: E = None
        self.s: I = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

g = A("g")
e = B("e")
h = C("h")
a = D("a")
m = E("m")
f = F("f")
j = G("j")
c = H("c")
d = I("d")

g.z = d
g.o = d
g.t = c
g.q = c
g.s = j
g.v = m
g.y = a
g.p = a
e.v = g
e.w = f
e.r = j
e.q = j
e.p = h
e.s = h
e.o = d
h.p = d
h.x = e
h.r = g
a.y = e
a.t = j
a.x = d
a.u = m
m.z = e
f.y = d
f.r = a
f.v = a
f.o = a
f.s = c
f.t = c
f.u = m
f.p = h
j.z = m
c.q = m
c.p = m
c.y = m
c.v = j
c.w = g
c.s = d
d.u = a
assert e.w.p.x.txt == "e"