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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: H = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: C = None
        self.v: H = None
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: D = None
        self.y: H = None
        self.s: G = None
        self.v: A = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: I = None
        self.q: H = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: H = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: C = None
        self.v: H = None
        self.x: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: D = None
        self.y: H = None
        self.s: G = None
        self.v: A = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: I = None
        self.q: H = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

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

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