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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: E = None
        self.p: D = None
        self.o: F = None
        self.txt = txt

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

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

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

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

g = A("g")
j = B("j")
m = C("m")
f = D("f")
a = E("a")
h = F("h")
c = F("c")
e = D("e")
n = E("n")
l = B("l")

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: E = None
        self.p: D = None
        self.o: F = None
        self.txt = txt

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

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

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

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

g = A("g")
j = B("j")
m = C("m")
f = D("f")
a = E("a")
h = F("h")
c = F("c")
e = D("e")
n = E("n")
l = B("l")

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