class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.z: D = None
        self.w: H = None
        self.q: C = None
        self.x: I = None
        self.t: I = None
        self.s: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: E = None
        self.v: C = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: D = None
        self.y: C = None
        self.p: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: C = None
        self.p: A = None
        self.q: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: E = None
        self.v: C = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: D = None
        self.y: C = None
        self.p: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: C = None
        self.p: A = None
        self.q: F = None
        self.txt = txt

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

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