class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.z: B = None
        self.q: B = None
        self.u: A = None
        self.t: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: C = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.v: F = None
        self.t: D = None
        self.q: D = None
        self.u: B = None
        self.txt = txt

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

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

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

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

k = A("k")
i = B("i")
c = C("c")
a = D("a")
g = E("g")
h = F("h")
e = G("e")
l = F("l")
j = A("j")

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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: C = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.v: F = None
        self.t: D = None
        self.q: D = None
        self.u: B = None
        self.txt = txt

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

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

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

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

k = A("k")
i = B("i")
c = C("c")
a = D("a")
g = E("g")
h = F("h")
e = G("e")
l = F("l")
j = A("j")

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