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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: G = None
        self.t: A = None
        self.s: F = None
        self.p: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: G = None
        self.t: H = None
        self.p: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: F = None
        self.y: H = None
        self.z: G = None
        self.q: B = None
        self.u: B = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: C = None
        self.r: E = None
        self.o: H = None
        self.t: H = None
        self.w: I = None
        self.z: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

l = A("l")
h = B("h")
a = C("a")
f = D("f")
c = E("c")
j = F("j")
n = G("n")
i = H("i")
b = I("b")

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: G = None
        self.t: A = None
        self.s: F = None
        self.p: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: G = None
        self.t: H = None
        self.p: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: F = None
        self.y: H = None
        self.z: G = None
        self.q: B = None
        self.u: B = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: C = None
        self.r: E = None
        self.o: H = None
        self.t: H = None
        self.w: I = None
        self.z: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

l = A("l")
h = B("h")
a = C("a")
f = D("f")
c = E("c")
j = F("j")
n = G("n")
i = H("i")
b = I("b")

l.p = h
l.y = j
l.t = b
l.u = a
l.v = a
l.o = c
l.s = f
h.q = j
h.s = j
h.y = n
h.t = l
h.p = f
a.o = l
a.s = f
a.u = b
a.y = j
a.t = c
a.p = c
f.z = h
f.p = h
f.r = n
f.t = i
c.t = a
c.o = j
c.y = i
c.z = n
c.q = h
c.u = h
c.r = h
j.s = l
j.q = a
j.r = c
j.o = i
j.t = i
j.w = b
j.z = b
n.z = j
i.w = a
b.x = c
assert l.p.p.t.w.o.y.s.txt == "l"