class A:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: A = None
        self.p: D = None
        self.v: F = None
        self.u: A = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: F = None
        self.y: B = None
        self.q: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.w: E = None
        self.s: D = None
        self.y: C = None
        self.r: D = None
        self.o: B = None
        self.txt = txt

g = A("g")
m = B("m")
d = C("d")
j = D("j")
k = E("k")
e = F("e")
a = E("a")
f = B("f")
c = C("c")

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

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: A = None
        self.p: D = None
        self.v: F = None
        self.u: A = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: F = None
        self.y: B = None
        self.q: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.w: E = None
        self.s: D = None
        self.y: C = None
        self.r: D = None
        self.o: B = None
        self.txt = txt

g = A("g")
m = B("m")
d = C("d")
j = D("j")
k = E("k")
e = F("e")
a = E("a")
f = B("f")
c = C("c")

g.o = f
m.t = d
m.q = a
m.o = j
d.y = g
d.q = g
d.u = g
d.p = j
d.o = j
d.v = e
j.s = g
j.u = e
j.q = e
j.y = f
k.q = m
k.x = c
k.r = j
k.u = d
k.t = e
e.t = k
e.w = k
e.s = j
e.r = j
e.y = c
e.o = f
a.q = m
a.x = c
a.r = j
a.u = d
a.t = e
f.t = c
f.q = k
f.o = j
c.y = g
c.q = g
c.u = g
c.p = j
c.o = j
c.v = e
assert c.o.q.w.t.txt == "e"