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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: A = None
        self.q: E = None
        self.r: A = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: A = None
        self.q: E = None
        self.r: A = None
        self.txt = txt

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

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

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

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

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

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

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