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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: C = None
        self.p: F = None
        self.z: D = None
        self.r: F = None
        self.q: C = None
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: B = None
        self.o: B = None
        self.s: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: B = None
        self.y: E = None
        self.r: E = None
        self.v: D = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: C = None
        self.q: B = None
        self.z: B = None
        self.w: G = None
        self.r: E = None
        self.v: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: C = None
        self.p: F = None
        self.z: D = None
        self.r: F = None
        self.q: C = None
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: B = None
        self.o: B = None
        self.s: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: B = None
        self.y: E = None
        self.r: E = None
        self.v: D = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: C = None
        self.q: B = None
        self.z: B = None
        self.w: G = None
        self.r: E = None
        self.v: E = None
        self.txt = txt

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

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