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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: F = None
        self.p: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.w: B = None
        self.v: I = None
        self.p: D = None
        self.y: D = None
        self.r: B = None
        self.t: I = None
        self.x: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: C = None
        self.o: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: F = None
        self.p: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.w: B = None
        self.v: I = None
        self.p: D = None
        self.y: D = None
        self.r: B = None
        self.t: I = None
        self.x: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: C = None
        self.o: B = None
        self.txt = txt

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

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