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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.o: G = None
        self.r: E = None
        self.v: A = None
        self.p: G = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: G = None
        self.r: F = None
        self.x: A = None
        self.u: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: A = None
        self.t: E = None
        self.p: B = None
        self.txt = txt

k = A("k")
c = B("c")
m = C("m")
d = D("d")
a = E("a")
f = F("f")
h = G("h")
g = B("g")
i = F("i")
l = C("l")

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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.o: G = None
        self.r: E = None
        self.v: A = None
        self.p: G = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: G = None
        self.r: F = None
        self.x: A = None
        self.u: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: A = None
        self.t: E = None
        self.p: B = None
        self.txt = txt

k = A("k")
c = B("c")
m = C("m")
d = D("d")
a = E("a")
f = F("f")
h = G("h")
g = B("g")
i = F("i")
l = C("l")

k.t = i
k.z = g
k.s = d
c.x = i
c.o = h
c.p = h
c.r = a
c.v = k
c.z = d
m.s = i
m.z = h
m.r = f
m.x = k
m.u = k
d.s = c
d.x = c
d.p = k
a.o = h
f.p = l
f.y = l
f.q = m
f.o = g
f.x = k
f.u = c
h.y = g
h.o = k
h.t = a
h.p = c
g.x = f
g.o = h
g.p = h
g.r = a
g.v = k
g.z = d
i.p = l
i.y = l
i.q = m
i.o = g
i.x = k
i.u = c
l.s = f
l.r = f
l.z = h
l.x = k
l.u = k
assert g.v.t.x.t.x.t.o.v.txt == "k"