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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: F = None
        self.y: D = None
        self.u: A = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: E = None
        self.s: F = None
        self.w: A = None
        self.u: C = None
        self.t: E = None
        self.txt = txt

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

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

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

m = A("m")
n = B("n")
d = C("d")
a = D("a")
j = E("j")
c = F("c")
g = F("g")
k = A("k")
h = D("h")
b = C("b")

m.u = k
m.v = k
m.s = k
m.x = k
m.o = n
m.t = h
n.r = k
n.t = c
n.y = a
n.u = m
n.p = d
d.o = b
d.u = b
d.q = j
d.t = j
d.s = g
d.w = m
a.q = b
a.w = h
j.y = b
j.z = h
j.s = k
c.r = j
c.w = j
c.x = b
c.o = m
c.y = m
g.r = j
g.w = j
g.x = b
g.o = m
g.y = k
k.u = m
k.v = m
k.s = m
k.x = m
k.o = n
k.t = h
h.q = b
h.w = a
b.o = d
b.u = d
b.q = j
b.t = j
b.s = c
b.w = m
assert d.o.t.y.u.q.s.x.s.o.p.txt == "
class A:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: B = None
        self.t: D = None
        self.v: A = None
        self.s: A = None
        self.x: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: F = None
        self.y: D = None
        self.u: A = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: E = None
        self.s: F = None
        self.w: A = None
        self.u: C = None
        self.t: E = None
        self.txt = txt

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

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

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

m = A("m")
n = B("n")
d = C("d")
a = D("a")
j = E("j")
c = F("c")
g = F("g")
k = A("k")
h = D("h")
b = C("b")

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