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

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: G = None
        self.y: D = None
        self.q: D = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.y: A = None
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: F = None
        self.x: D = None
        self.w: G = None
        self.y: G = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: C = None
        self.u: E = None
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: D = None
        self.q: B = None
        self.txt = txt

j = A("j")
d = B("d")
m = C("m")
c = D("c")
n = E("n")
l = F("l")
e = G("e")
b = A("b")

j.t = n
j.x = m
j.v = e
j.y = b
j.o = b
j.q = b
j.w = d
d.o = l
d.r = n
d.x = n
m.u = d
m.s = e
m.t = e
m.y = c
m.q = c
c.p = m
c.y = j
c.r = e
n.v = m
n.s = m
n.u = l
n.x = c
n.w = e
n.y = e
l.x = d
l.r = m
l.u = n
l.w = n
e.w = m
e.t = c
e.q = d
b.t = n
b.x = m
b.v = e
b.y = j
b.o = j
b.q = j
b.w = d
assert b.t.s.y.r.w.u.txt == "
class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: C = None
        self.v: G = None
        self.y: A = None
        self.o: A = None
        self.w: B = None
        self.q: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: G = None
        self.y: D = None
        self.q: D = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.y: A = None
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: F = None
        self.x: D = None
        self.w: G = None
        self.y: G = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: C = None
        self.u: E = None
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: D = None
        self.q: B = None
        self.txt = txt

j = A("j")
d = B("d")
m = C("m")
c = D("c")
n = E("n")
l = F("l")
e = G("e")
b = A("b")

j.t = n
j.x = m
j.v = e
j.y = b
j.o = b
j.q = b
j.w = d
d.o = l
d.r = n
d.x = n
m.u = d
m.s = e
m.t = e
m.y = c
m.q = c
c.p = m
c.y = j
c.r = e
n.v = m
n.s = m
n.u = l
n.x = c
n.w = e
n.y = e
l.x = d
l.r = m
l.u = n
l.w = n
e.w = m
e.t = c
e.q = d
b.t = n
b.x = m
b.v = e
b.y = j
b.o = j
b.q = j
b.w = d
assert b.t.s.y.r.w.u.txt == "d"