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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: A = None
        self.s: D = None
        self.u: B = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: B = None
        self.t: D = None
        self.o: F = None
        self.p: F = None
        self.y: C = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: G = None
        self.s: F = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: D = None
        self.w: B = None
        self.z: D = None
        self.s: G = None
        self.v: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: C = None
        self.z: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: A = None
        self.s: D = None
        self.u: B = None
        self.v: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: B = None
        self.t: D = None
        self.o: F = None
        self.p: F = None
        self.y: C = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: G = None
        self.s: F = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: D = None
        self.w: B = None
        self.z: D = None
        self.s: G = None
        self.v: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: C = None
        self.z: G = None
        self.txt = txt

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

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