def sanitize_cloud(cloud: str) -> str:
if len(cloud) < <NUM_LIT:4>:<EOL><INDENT>return cloud<EOL><DEDENT>if not cloud[<NUM_LIT:3>].isdigit() and cloud[<NUM_LIT:3>] != '<STR_LIT:/>':<EOL><INDENT>if cloud[<NUM_LIT:3>] == '<STR_LIT:O>':<EOL><INDENT>cloud = cloud[:<NUM_LIT:3>] + '<STR_LIT:0>' + cloud[<NUM_LIT:4>:]  <EOL><DEDENT>else:  <EOL><INDENT>cloud = cloud[:<NUM_LIT:3>] + cloud[<NUM_LIT:4>:] + cloud[<NUM_LIT:3>]<EOL><DEDENT><DEDENT>return cloud<EOL>
Fix rare cloud layer issues