class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: F = None
        self.w: C = None
        self.v: F = None
        self.p: D = None
        self.x: H = None
        self.z: G = None
        self.q: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: E = None
        self.z: E = None
        self.w: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: D = None
        self.s: E = None
        self.y: F = None
        self.w: D = None
        self.q: D = None
        self.p: F = None
        self.z: F = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: F = None
        self.u: F = None
        self.s: I = None
        self.r: F = None
        self.y: I = None
        self.p: F = None
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: E = None
        self.z: E = None
        self.w: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: D = None
        self.s: E = None
        self.y: F = None
        self.w: D = None
        self.q: D = None
        self.p: F = None
        self.z: F = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.t: F = None
        self.u: F = None
        self.s: I = None
        self.r: F = None
        self.y: I = None
        self.p: F = None
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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