class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: B = None
        self.q: I = None
        self.p: E = None
        self.s: D = None
        self.x: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: F = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: D = None
        self.y: I = None
        self.t: B = None
        self.s: I = None
        self.q: C = None
        self.p: I = None
        self.x: F = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: D = None
        self.y: I = None
        self.u: E = None
        self.s: E = None
        self.o: D = None
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.v: A = None
        self.o: D = None
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: A = None
        self.r: D = None
        self.u: B = None
        self.s: A = None
        self.t: B = None
        self.txt = txt

e = A("e")
b = B("b")
m = C("m")
n = D("n")
j = E("j")
a = F("a")
g = G("g")
d = H("d")
l = I("l")

e.w = j
e.p = j
e.o = b
e.q = l
e.s = n
e.x = m
b.o = n
b.p = a
b.u = a
b.t = e
b.r = e
b.q = e
b.y = m
b.v = g
b.s = j
m.q = a
m.t = a
m.z = j
n.p = g
j.z = g
j.o = n
j.y = l
j.s = l
j.p = l
j.t = b
j.q = m
j.w = m
j.x = a
a.t = g
a.r = n
a.o = n
a.y = l
a.w = l
a.u = j
a.s = j
g.t = n
d.q = l
d.v = e
d.o = n
d.u = j
l.x = m
l.w = e
l.s = e
l.r = n
l.u = b
l.t = b
assert d.v.w.p.r.p.t.p.txt == "
class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: B = None
        self.q: I = None
        self.p: E = None
        self.s: D = None
        self.x: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: F = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: D = None
        self.y: I = None
        self.t: B = None
        self.s: I = None
        self.q: C = None
        self.p: I = None
        self.x: F = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: D = None
        self.y: I = None
        self.u: E = None
        self.s: E = None
        self.o: D = None
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.v: A = None
        self.o: D = None
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: A = None
        self.r: D = None
        self.u: B = None
        self.s: A = None
        self.t: B = None
        self.txt = txt

e = A("e")
b = B("b")
m = C("m")
n = D("n")
j = E("j")
a = F("a")
g = G("g")
d = H("d")
l = I("l")

e.w = j
e.p = j
e.o = b
e.q = l
e.s = n
e.x = m
b.o = n
b.p = a
b.u = a
b.t = e
b.r = e
b.q = e
b.y = m
b.v = g
b.s = j
m.q = a
m.t = a
m.z = j
n.p = g
j.z = g
j.o = n
j.y = l
j.s = l
j.p = l
j.t = b
j.q = m
j.w = m
j.x = a
a.t = g
a.r = n
a.o = n
a.y = l
a.w = l
a.u = j
a.s = j
g.t = n
d.q = l
d.v = e
d.o = n
d.u = j
l.x = m
l.w = e
l.s = e
l.r = n
l.u = b
l.t = b
assert d.v.w.p.r.p.t.p.txt == "g"